Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / ada / par-ch11.adb
index a11894c..c255325 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2012, 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- --
@@ -137,12 +137,14 @@ package body Ch11 is
 
             Scan; -- past :
             Change_Identifier_To_Defining_Identifier (Choice_Param_Node);
+            Warn_If_Standard_Redefinition (Choice_Param_Node);
             Set_Choice_Parameter (Handler_Node, Choice_Param_Node);
 
          elsif Token = Tok_Others then
             Error_Msg_AP -- CODEFIX
               ("missing "":""");
             Change_Identifier_To_Defining_Identifier (Choice_Param_Node);
+            Warn_If_Standard_Redefinition (Choice_Param_Node);
             Set_Choice_Parameter (Handler_Node, Choice_Param_Node);
 
          else