www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3712] New: Error message without filename or line numbers on invalid code

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: nfxjfg gmail.com



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: -------
Jan 16 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3712


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
            Version|1.055                       |1.039



The 'undefined identifier' message was present in 1.037 but disappeared in
1.038 or 1.039. It is still correctly present in D2. The remaining message
without line number shouldn't appear at all.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 06 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3712


nfxjfg gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 06 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3712


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 06 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3712


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WORKSFORME



22:06:40 PDT ---
dmd 1.068 and 2.053 produce

test.d(3): Error: undefined identifier DmdFails
test.d(8): Error: template instance test.foo!(int) error instantiating

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