From: Hristian Kirtchev Date: Tue, 20 May 2008 12:48:03 +0000 (+0200) Subject: 2008-05-20 Hristian Kirtchev X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caebb7c302bd203f1dc7a243cef7f54b31273cfb;p=gcc.git 2008-05-20 Hristian Kirtchev * par-ch3.adb (P_Access_Definition): Change the error message when parsing "access all" in Ada 95 mode. The message no longer forces the user to recompile in 05 mode only to discover that anonymous access types are not allowed to have "all". From-SVN: r135633 --- 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