Skip to content
Snippets Groups Projects
Commit a276fddf authored by Robert Dewar's avatar Robert Dewar Committed by Arnaud Charlet
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment