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

--- Comment #0 from 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() {

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to