diff options
Diffstat (limited to 'gcc/ada/par-ch4.adb')
-rw-r--r-- | gcc/ada/par-ch4.adb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/par-ch4.adb b/gcc/ada/par-ch4.adb index 85b4024..59884d2 100644 --- a/gcc/ada/par-ch4.adb +++ b/gcc/ada/par-ch4.adb @@ -2553,6 +2553,11 @@ package body Ch4 is Node1 : Node_Id; begin + if Ada_Version < Ada_2012 then + Error_Msg_SC ("quantified expression is an Ada 2012 feature"); + Error_Msg_SC ("\|unit must be compiled with -gnat2012 switch"); + end if; + Scan; -- past FOR Node1 := New_Node (N_Quantified_Expression, Prev_Token_Ptr); |