www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Regression] Internal error: e2ir.c 1158

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Using DMD 0.108, Windows 98SE.

Another bit of SDWF has been bitten.

----------
import std.c.windows.windows;

void main(char[][] args) {
     HDC dc = (args.length > 1 ? &GetWindowDC : &GetDC) (null);
}
----------
Internal error: e2ir.c 1158
----------

I haven't figured the exact conditions in which it happens.  If I 
separate the declaration and assignment, the error still happens.  If I 
don't assign it to anything, even if I pass it to a function, the error 
goes away.  The problem doesn't seem to happen when I use sample 
int(int) functions.

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
Dec 01 2004
parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Added to DStress as
http://svn.kuehne.cn/dstress/compile/bug_e2ir_1158_A.d

Thomas

Stewart Gordon schrieb am Wed, 01 Dec 2004 10:31:15 +0000:
 Using DMD 0.108, Windows 98SE.

 Another bit of SDWF has been bitten.

 ----------
 import std.c.windows.windows;

 void main(char[][] args) {
      HDC dc = (args.length > 1 ? &GetWindowDC : &GetDC) (null);
 }
 ----------
 Internal error: e2ir.c 1158
 ----------

 I haven't figured the exact conditions in which it happens.  If I 
 separate the declaration and assignment, the error still happens.  If I 
 don't assign it to anything, even if I pass it to a function, the error 
 goes away.  The problem doesn't seem to happen when I use sample 
 int(int) functions.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.12 (GNU/Linux) iD8DBQFBrcyA3w+/yD4P9tIRAs2IAJ0bOjkfwS5coOLiCEQPztjKk+SdywCfbPIy Ko7rhMeQ6lUxy0v9sWJrtw4= =n/sG -----END PGP SIGNATURE-----
Dec 01 2004