[Issue 223] New: Error message for void.init doesn't specify error location
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Jun 30 00:24:09 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-06-24:
> http://d.puremagic.com/issues/show_bug.cgi?id=223
> int i = void.init;
>
> The above code correctly produces the error "integral constant must be scalar
> type, not void". Alas, DMD neglects to inform where the error occurred: even
> when compiling a large project containing many long files, the error message is
> precisely the quoted string.
test case:
http://dstress.kuehne.cn/nocompile/v/void_02_A.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEpNuu3w+/yD4P9tIRAnKsAKClFHKYfzU+GcaHPL76ZLhXEPf1gwCgzM7I
9dLrsFP5ma2oV7VoyoV8/M4=
=V8rq
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list