[Issue 9031] New: No error line number with not callable postblit

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 15 04:52:00 PST 2012


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

           Summary: No error line number with not callable postblit
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-11-15 04:51:58 PST ---
>From code by Dan:
http://forum.dlang.org/thread/jbdxsfkpxmsiqcunuppj@forum.dlang.org


struct Foo {
    this(this) {}
}
alias const(Foo)[int] Bar;
void main() {
    Bar b;
    foreach (value; b) {}
}



DMD 2.061alpha gives no error line number:

Error: function test2.Foo.__postblit () is not callable using argument types ()
const

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