aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2022-10-25 16:59:29 -0700
committerMarc Poulhiès <poulhies@adacore.com>2022-11-08 09:35:03 +0100
commit10f193eb043e30741d9631999bc869d71d43264c (patch)
tree7b5c5520a97d7a735d6fca41fc20a6bcf46590a8 /gcc/c/c-parser.c
parent11f892571c7ab4964f16c0d432e6f5a9b4a091f1 (diff)
downloadgcc-10f193eb043e30741d9631999bc869d71d43264c.zip
gcc-10f193eb043e30741d9631999bc869d71d43264c.tar.gz
gcc-10f193eb043e30741d9631999bc869d71d43264c.tar.bz2
ada: Compile-time simplification of 'Image incorrectly ignores Put_Image
In the case of Some_Enumeration_Type'Image (<some static value>), the compiler will replace this expression in its internal program representation with a corresponding string literal. This is incorrect if the Put_Image aspect has been specified (directly or via inheritance) for the enumeration type. gcc/ada/ * sem_attr.adb (Eval_Attribute): Don't simplify 'Image call if Put_Image has been specified.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions