]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/114811 string set incl ICE bugfix
authorGaius Mulley <gaiusmod2@gmail.com>
Mon, 22 Apr 2024 19:34:11 +0000 (20:34 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Mon, 22 Apr 2024 19:34:11 +0000 (20:34 +0100)
commitb909daa5b67317e46543a7b2ed76e82298645cf6
tree3afe1bcf3f85d1b4294236e30519389809e93b3d
parent7ef139146a8923a8719873ca3fdae175668e8d63
PR modula2/114811 string set incl ICE bugfix

This patch corrects gm2-torture.exp to recognize an ICE
in the fail case as a negative result.  The patch also fixes
FoldBinarySet so that the types are only checked once the operands
have been resolved.  Without this patch
gcc/testsuite/gm2/iso/fail/badexpression2.mod would cause an ICE.

gcc/m2/ChangeLog:

PR modula2/114811
* gm2-compiler/M2GenGCC.mod (FoldBinarySet): Add condition
checking to ensure op2 and op3 are fully resolved before
type checking is performed.

gcc/testsuite/ChangeLog:

PR modula2/114811
* lib/gm2-torture.exp: Correct regexp checking for internal
compiler error strings in compiler output.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2GenGCC.mod
gcc/testsuite/lib/gm2-torture.exp