[Issue 9649] New: DMD doesn't parse valid PostfixExpression . NewExpression syntax.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 5 04:21:42 PST 2013


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

           Summary: DMD doesn't parse valid PostfixExpression .
                    NewExpression syntax.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bdom.pub+deebugz at gmail.com


--- Comment #0 from Bruno Medeiros <bdom.pub+deebugz at gmail.com> 2013-03-05 04:21:41 PST ---
The following is valid source according to the grammar (and is sensible code),
but DMD doesn't parse it:

class Xpto {

    class Inner {
    }
}
Xpto xpto;


void func() {
    auto x = (xpto).new Inner(); // Doesn't parse
}

auto x = (xpto).new Inner(); // Doesn't parse

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