aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2024-02-01 10:24:02 +0000
committerGaius Mulley <gaiusmod2@gmail.com>2024-02-01 10:24:02 +0000
commit75f49cf82e06971b066b4f440256004775603752 (patch)
treef66ffb30040c209220252a300d9b3b77b34cc6f5 /libcpp
parentb84f8a5e0a7ef3e5bd0d186fc7e280d9c43c5b7f (diff)
downloadgcc-75f49cf82e06971b066b4f440256004775603752.zip
gcc-75f49cf82e06971b066b4f440256004775603752.tar.gz
gcc-75f49cf82e06971b066b4f440256004775603752.tar.bz2
PR modula2/111627 defend against ICE
Although PR 111627 can be fixed by renaming testsuite modules it highlighted that a possible ICE can occur if a malformed implementation module is actually a program module. This small patch defends against this ICE and checks to see whether the module is a DefImp before testing IsDefinitionForC. gcc/m2/ChangeLog: PR modula2/111627 PR modula2/112506 * gm2-compiler/M2Comp.mod (Pass0CheckMod): Test IsDefImp before checking IsDefinitionForC. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions