[Issue 3712] New: Error message without filename or line numbers on invalid code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 16 14:06:02 PST 2010


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

           Summary: Error message without filename or line numbers on
                    invalid code
           Product: D
           Version: 1.054
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nfxjfg at gmail.com


--- Comment #0 from nfxjfg at gmail.com 2010-01-16 14:06:01 PST ---
NOTE: this bug report is for dmd 1.055, but the list let's me select only up to
dmd 1.054. I tested this only with dmd 1.055.

This is expected to fail, but it outputs an error message without any filename,
line number, or other context. This makes finding the error location very hard.

Honestly, I don't even know why dmd has error report functions that apparently
output error messages without location information.

This happens both with the patch for bug 3685 applied or not applied.


//compile with dmd -c
//fails with:
// Error: can only catch class objects, not 'void'
//No further error messages, no filename, no line number.

void foo(T)() {
    try {
    } catch (DmdFails e) {
    }
}

void x() {
    foo!(int)();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list