Bug 304 – Internal error: e2ir.c 145

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-08-21T19:09:00Z
Last change time
2014-02-15T13:19:07Z
Assigned to
bugzilla
Creator
benoit

Comments

Comment #0 by benoit — 2006-08-21T19:09:08Z
Code that compile fine with 0.164 get this internal error with 0.165 I hope this can help to fix it, because it is really hard to cut that code down. Perhaps someone has another example code??
Comment #1 by benoit — 2006-08-22T05:50:45Z
(In reply to comment #0) Ok I have cut it down: === main.d === module main; import inc; void main(){ func1( { func2(); }); } === inc.d === module inc; alias void delegate() dg; void func1( dg aDg = null ){ } void func2( dg aDg = null ){ } === Compile with 'dmd main.d' === Internal error: e2ir.c 145
Comment #2 by thomas-dloop — 2006-08-25T06:55:33Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-08-22: > http://d.puremagic.com/issues/show_bug.cgi?id=304 > ------- Comment #1 from [email protected] 2006-08-22 05:50 ------- > (In reply to comment #0) > > Ok I have cut it down: > >=== main.d === > module main; > > import inc; > > void main(){ > func1( { func2(); }); > } > >=== inc.d === > module inc; > > alias void delegate() dg; > > void func1( dg aDg = null ){ > } > > void func2( dg aDg = null ){ > } > >=== Compile with 'dmd main.d' === > Internal error: e2ir.c 145 Added to DStress as http://dstress.kuehne.cn/compile/b/bug_e2ir_145_A.d http://dstress.kuehne.cn/run/b/bug_e2ir_145_B.d http://dstress.kuehne.cn/run/b/bug_e2ir_145_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE7unFLK5blCcjpWoRAjINAJ9wTb4mXKQfLqVv4rpRzow/+OuJsQCdFpCB EYd8m0d/Zm1XYIKtTqtPXzQ= =cMHB -----END PGP SIGNATURE-----
Comment #3 by bugzilla — 2006-09-02T19:46:16Z
Fixed 0.166