projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b0c61
)
par-ch12.adb (P_Generic): Give better msg for illegal private generic child.
author
Robert Dewar
<dewar@adacore.com>
Tue, 29 Mar 2005 16:17:25 +0000
(18:17 +0200)
committer
Arnaud Charlet
<charlet@gcc.gnu.org>
Tue, 29 Mar 2005 16:17:25 +0000
(18:17 +0200)
2005-03-29 Robert Dewar <dewar@adacore.com>
* par-ch12.adb (P_Generic): Give better msg for illegal private generic
child.
From-SVN: r97177
gcc/ada/par-ch12.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/par-ch12.adb
b/gcc/ada/par-ch12.adb
index 56ec4a15f39cc5fb74e7343358040da83a52cfcb..ae6b6cd48d579a1af965b94d688309eddd8af455 100644
(file)
--- 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);