December 01, 2004
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.
December 01, 2004
-----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-----