[Issue 3654] New: auto return doesn't work for nested functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 26 18:55:31 PST 2009


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

           Summary: auto return doesn't work for nested functions
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: baryluk at smp.if.uj.edu.pl


--- Comment #0 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2009-12-26 18:55:31 PST ---
Title says it all, example:

module aaa;
void foo() {
    auto bar() {
        return 1;
    }
}

$ dmd2.037 -c aaa.d 
aaa.d(2): no identifier for declarator bar
aaa.d(2): semicolon expected, not '{'

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