[Issue 9250] New: Wrong error line number with an assignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 1 08:22:18 PST 2013


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

           Summary: Wrong error line number with an assignment
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-01-01 08:22:13 PST ---
struct Foo {
    ubyte u;
    alias this = u;
}
void main() {
    size_t[10] bar; // line 6, error
    // ...
    // ...
    // ...
    // ...
    Foo x = bar.length;
}



DMD 2.061alpha show a wrong line number for the error message, 6 instead of 11:

test.d(6): Error: cannot implicitly convert expression (10u) of type uint to
Foo

-- 
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