par-ch12.adb (P_Generic): Give better msg for illegal private generic child.
2005-03-29 Robert Dewar <dewar@adacore.com> * par-ch12.adb (P_Generic): Give better msg for illegal private generic child. From-SVN: r97177
This commit is contained in:
parent
a9b0c61633
commit
a276fddfdb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user