[Issue 223] Error message for unset constants doesn't specify error location
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 20 01:37:35 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=223
------- Comment #5 from braddr at puremagic.com 2007-10-20 03:37 -------
The noise past the original bug report seems to have gotten the original bug
overlooked.
void main()
{
int i == void.init;
}
Produces this error, without a line number for the second error:
bug223.d(3): Error: void does not have an initializer
Error: integral constant must be scalar type, not void.
NOTE: dropping the .init part changes the semantics to 'don't default
initialize i' and there's no error at all, which is the correct behavior.
--
More information about the Digitalmars-d-bugs
mailing list