Commit a276fddf by Robert Dewar Committed by Arnaud Charlet

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
parent a9b0c616
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment