[Issue 9971] New: eponymous function is not an lvalue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 20 15:56:32 PDT 2013


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

           Summary: eponymous function is not an lvalue
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2013-04-20 15:56:31 PDT ---
the code:

void main() {
    goo!()();
}

void goo()() {
    auto g = &goo; // not ok
}
void goo2() {
    auto g = &goo2; // ok
}

the fireworks:

Error: goo()() is not an lvalue

dmd 2.063-devel.

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