www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10247] New: LastCatch grammar does not match implementation

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

           Summary: LastCatch grammar does not match implementation
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: brian-schott cox.net


--- Comment #0 from brian-schott cox.net 2013-06-02 16:03:33 PDT ---
Consider the following code:

try {
  functionCall();
} catch (a + b).c();

This should match the LastCatch rule because (a + b).c() falls under the
category of NoScopeNonEmptyStatement, but dmd's parser only checks the opening
paren after the 'catch' token and tries going for the Catch rule.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 02 2013