[Issue 222] New: "Internal error: ..\ztc\cod1.c 1656" with && and ||
Thomas Kuehne
thomas-dloop at kuehne.cn
Thu Jun 29 06:35:28 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-06-23:
> http://d.puremagic.com/issues/show_bug.cgi?id=222
> Try:
>
> void f()
> {
>
> }
>
> ..
>
> int x = 0 || f();
> int y = 1 && f();
>
> Either declaration gives the error in the message.
>
> According to the spec, the result of && and || is void if the second operand is
> void. So this isn't valid code.
Added to DStress as
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_A.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_B.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_C.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_D.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_E.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_F.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_G.d
http://dstress.kuehne.cn/nocompile/b/bug_cod1_1656_H.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEo7X/3w+/yD4P9tIRAjcwAKCXkStJ9Cw9GGXv6C2cJgkiUC8URACgo0Bp
XXJU8Y3DpHxKLTs5sczN3Cw=
=crKx
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list