aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-09-14 11:33:05 +0200
committerEric Botcazou <ebotcazou@adacore.com>2021-09-14 11:35:29 +0200
commitbd55fa102715c7442c050b193dadfdb5337e2377 (patch)
treeef59efbca77a5066e99713f0d7ae57a8a57696a1 /gcc/fortran/resolve.c
parent9bb20299ba1d1cc3bbd83a07a777fcc5a93cfeb0 (diff)
downloadgcc-bd55fa102715c7442c050b193dadfdb5337e2377.zip
gcc-bd55fa102715c7442c050b193dadfdb5337e2377.tar.gz
gcc-bd55fa102715c7442c050b193dadfdb5337e2377.tar.bz2
Fix PR ada/101970
This is a regression present on the mainline and 11 branch in the form of an ICE for an enumeration type with a full signed representation for its size. gcc/ada/ PR ada/101970 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Enum_Rep>: Use an unchecked conversion instead of a regular conversion in the enumeration case and remove Conversion_OK flag in the integer case. <Attribute_Pos>: Remove superfluous test. gcc/testsuite/ * gnat.dg/enum_rep2.adb: New test.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions