aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRaphaël AMIARD <amiard@adacore.com>2024-09-10 11:10:21 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-10-25 11:08:59 +0200
commitd1cb12a5b870daccfaf2b4d9c91646a00eb01aee (patch)
tree22395dd6cd2c023921f26879b439171f75ac0199 /gcc
parenta8bfc4dede003c76123f44eaafb374cb6dbcc1ec (diff)
downloadgcc-d1cb12a5b870daccfaf2b4d9c91646a00eb01aee.zip
gcc-d1cb12a5b870daccfaf2b4d9c91646a00eb01aee.tar.gz
gcc-d1cb12a5b870daccfaf2b4d9c91646a00eb01aee.tar.bz2
ada: Forbid repr clauses for decls in handled_stmts
gcc/ada/ChangeLog: * par-ch5.adb (P_Sequence_Of_Statements): Forbid repr clauses in handled_statements.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/par-ch5.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/par-ch5.adb b/gcc/ada/par-ch5.adb
index 557aaf1..34c845f 100644
--- a/gcc/ada/par-ch5.adb
+++ b/gcc/ada/par-ch5.adb
@@ -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",