]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix compilation of concatenation with illegal character constant
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 28 Jun 2025 15:42:26 +0000 (17:42 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Sat, 28 Jun 2025 15:44:04 +0000 (17:44 +0200)
commit0788add46a172b7b1c565fafdef80979be3dc2a6
tree220d3bad1fd08100945588e5c9dcc92537ee96de
parentf20f6c796499d097d301104fb2abe49fb77ce492
Fix compilation of concatenation with illegal character constant

This fixes an error recovery issue, whereby the compilation of a string
concatenation with an illegal character constant hangs.

gcc/ada/
PR ada/120854
* sem_eval.adb (Get_String_Val): Be prepared for an integer literal
after a serious error is detected, and raise PE on other nodes.
gcc/testsuite/
* gnat.dg/concat6.adb: New test.
gcc/ada/sem_eval.adb
gcc/testsuite/gnat.dg/concat6.adb [new file with mode: 0644]