aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.cc
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2023-05-31 09:21:44 -0400
committerMarc Poulhiès <poulhies@adacore.com>2023-06-20 09:30:49 +0200
commit970ee828e75fb3f67a7dc8dd8108e9a2f23b997b (patch)
tree49c41c9c63d70e44f34977535135942f56ed6a72 /libcpp/directives.cc
parentd39664b659f2442a456be865ee6adcfe1a4a5aed (diff)
downloadgcc-970ee828e75fb3f67a7dc8dd8108e9a2f23b997b.zip
gcc-970ee828e75fb3f67a7dc8dd8108e9a2f23b997b.tar.gz
gcc-970ee828e75fb3f67a7dc8dd8108e9a2f23b997b.tar.bz2
ada: Fix bug in predicate checks with address clauses
This patch fixes a compiler bug triggered by having a type with some defaulted components, and a predicate, and an object of that type with an address clause. In this case, the compiler was crashing. gcc/ada/ * sem_ch3.adb (Analyze_Object_Declaration): Remove predicate-check generation if there is an address clause. These are unnecessary, and cause gigi to crash. * exp_util.ads (Following_Address_Clause): Remove obsolete "???" comments. The suggested changes were done long ago.
Diffstat (limited to 'libcpp/directives.cc')
0 files changed, 0 insertions, 0 deletions