[Ada] Crash on 'Img attribute
Pierre-Marie de Rodat
derodat@adacore.com
Tue Jul 9 07:52:00 GMT 2019
This patch fixes and issue whereby applying 'Img to a constant
enumerated character type would result in a compiler crash when
assertions are enabled and infinite recursion when they are not.
Tested on x86_64-pc-linux-gnu, committed on trunk
2019-07-09 Justin Squirek <squirek@adacore.com>
gcc/ada/
* sem_eval.adb (Expr_Value_E): Add conditional to correctly
handle constant enumerated character types.
gcc/testsuite/
* gnat.dg/image1.adb: New testcase.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 916 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190709/0f1b60c9/attachment.bin>
More information about the Gcc-patches
mailing list