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: nob...@puremagic.com
        ReportedBy: nfx...@gmail.com


--- Comment #0 from nfx...@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: -------

Reply via email to