diff options
Diffstat (limited to 'gcc/ada/par-ch3.adb')
-rw-r--r-- | gcc/ada/par-ch3.adb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/par-ch3.adb b/gcc/ada/par-ch3.adb index 8eb0e71975c..c2ec59be9dc 100644 --- a/gcc/ada/par-ch3.adb +++ b/gcc/ada/par-ch3.adb @@ -3931,8 +3931,7 @@ package body Ch3 is if Token = Tok_All then if Ada_Version < Ada_05 then Error_Msg_SP - ("access-all in this context is an Ada 2005 extension"); - Error_Msg_SP ("\unit should be compiled with -gnat05 switch"); + ("ALL is not permitted for anonymous access types"); end if; Scan; -- past ALL |