Skip to content
Snippets Groups Projects
Commit 75f49cf8 authored by Gaius Mulley's avatar Gaius Mulley
Browse files

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: default avatarGaius Mulley <gaiusmod2@gmail.com>
parent b84f8a5e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment