Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LastCatch grammar does not match implementation #18595

Open
dlangBugzillaToGithub opened this issue Jun 2, 2013 · 1 comment
Open

LastCatch grammar does not match implementation #18595

dlangBugzillaToGithub opened this issue Jun 2, 2013 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

briancschott reported this on 2013-06-02T16:03:33Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=10247

Description

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.
@dlangBugzillaToGithub
Copy link
Author

briancschott commented on 2014-06-06T20:05:00Z

I've tried to fix this in D-Scanner, and so far I haven't figured out a way to eliminate the ambiguity. I support implementing issue 12558 and removing the LastCatch rule from the language entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant