aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorRonan Desplanques <desplanques@adacore.com>2022-11-09 13:32:05 +0100
committerMarc Poulhiès <poulhies@adacore.com>2022-11-21 11:10:31 +0100
commit8bebbf7b463693316a1518ba31c04648cb629b23 (patch)
tree29016d8872d939b61e42526103afac78a92a3eff /libcpp
parentec8ec09f9414be871e322fecf4ebf53e3687bd22 (diff)
downloadgcc-8bebbf7b463693316a1518ba31c04648cb629b23.zip
gcc-8bebbf7b463693316a1518ba31c04648cb629b23.tar.gz
gcc-8bebbf7b463693316a1518ba31c04648cb629b23.tar.bz2
ada: Tweak error messages on misplaced with keywords
Before this patch, with clauses placed in declarative sections were interpreted by the compiler as incorrect aspect specifications, which led to confusing error messages. This patch makes it so more syntax errors involving the with keyword are diagnosed as intended with clauses instead of aspect specifications. gcc/ada/ * par-ch3.adb (P_Declarative_Item): Tweak handling of with keyword.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions