]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Forbid repr clauses for decls in handled_stmts
authorRaphaël AMIARD <amiard@adacore.com>
Tue, 10 Sep 2024 09:10:21 +0000 (11:10 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 25 Oct 2024 09:08:59 +0000 (11:08 +0200)
gcc/ada/ChangeLog:

* par-ch5.adb (P_Sequence_Of_Statements): Forbid repr clauses in
handled_statements.

gcc/ada/par-ch5.adb

index 557aaf1ff680786a7c242a53e983e01310a73beb..34c845f838cc1a7577158d92ce3839862d2f45a1 100644 (file)
@@ -257,8 +257,7 @@ package body Ch5 is
                   while Present (Decl) loop
                      if not (Nkind (Decl) in
                         N_Object_Declaration | N_Object_Renaming_Declaration |
-                        N_Use_Type_Clause | N_Use_Package_Clause |
-                        N_Representation_Clause)
+                        N_Use_Type_Clause | N_Use_Package_Clause)
                      then
                         Error_Msg
                           ("Declaration kind not allowed in statements lists",