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

PR modula2/114294 expression causes ICE


This patch fixes an ICE when encountering an expression:
1 + HIGH (a[0]).  The fix was to assign a type to the constant
created by BuildConstHighFromSym in M2Quads.mod.

gcc/m2/ChangeLog:

	PR modula2/114294
	* gm2-compiler/M2Quads.mod (BuildConstHighFromSym):
	Call PutConst to assign the type Cardinal in the result
	constant.

gcc/testsuite/ChangeLog:

	PR modula2/114294
	* gm2/pim/pass/log: Removed.
	* gm2/pim/pass/highexp.mod: New test.

Signed-off-by: default avatarGaius Mulley <gaiusmod2@gmail.com>
parent 53fd0f5b
No related branches found
No related tags found
No related merge requests found
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