aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/par-ch5.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/par-ch5.adb')
-rw-r--r--gcc/ada/par-ch5.adb6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/par-ch5.adb b/gcc/ada/par-ch5.adb
index 517e58a..1d5504d 100644
--- a/gcc/ada/par-ch5.adb
+++ b/gcc/ada/par-ch5.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -240,6 +240,10 @@ package body Ch5 is
and then Statement_Seen)
or else All_Pragmas)
then
+ -- This Ada 2012 construct not allowed in a compiler unit
+
+ Check_Compiler_Unit ("null statement list", Token_Ptr);
+
declare
Null_Stm : constant Node_Id :=
Make_Null_Statement (Token_Ptr);