diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 16:17:25 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 16:17:25 +0000 |
commit | 651597463775d688e0f2336e85f263e1931f7c6e (patch) | |
tree | 2e09c4d22de09ac000c4c4f829401562b0252620 /gcc/ada/par-ch12.adb | |
parent | 86232b46e55cbaf14d0843a7607bd18b3622cc16 (diff) | |
download | gcc-651597463775d688e0f2336e85f263e1931f7c6e.tar.gz |
2005-03-29 Robert Dewar <dewar@adacore.com>
* par-ch12.adb (P_Generic): Give better msg for illegal private generic
child.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par-ch12.adb')
-rw-r--r-- | gcc/ada/par-ch12.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/par-ch12.adb b/gcc/ada/par-ch12.adb index 56ec4a15f39..ae6b6cd48d5 100644 --- a/gcc/ada/par-ch12.adb +++ b/gcc/ada/par-ch12.adb @@ -153,7 +153,11 @@ package body Ch12 is Decl_Loop : loop P_Pragmas_Opt (Decls); - Ignore (Tok_Private); + + if Token = Tok_Private then + Error_Msg_S ("generic private child packages not permitted"); + Scan; -- past PRIVATE + end if; if Token = Tok_Use then Append (P_Use_Clause, Decls); |