[Issue 223] New: Error message for void.init doesn't specify error location

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 24 12:28:38 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=223

           Summary: Error message for void.init doesn't specify error
                    location
           Product: D
           Version: 0.161
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: trivial
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com


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.

Whilst not strictly speaking a bug, I believe this is enough of an issue that
it merits fixing.


-- 




More information about the Digitalmars-d-bugs mailing list