diff options
author | Bob Duff <duff@adacore.com> | 2023-05-31 09:21:44 -0400 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-06-20 09:30:49 +0200 |
commit | 970ee828e75fb3f67a7dc8dd8108e9a2f23b997b (patch) | |
tree | 49c41c9c63d70e44f34977535135942f56ed6a72 /libcpp | |
parent | d39664b659f2442a456be865ee6adcfe1a4a5aed (diff) | |
download | gcc-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')
0 files changed, 0 insertions, 0 deletions