Bug 22019 – `case 1,:` allowed by grammar but not DMD
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-12T12:45:30Z
Last change time
2021-06-14T16:42:27Z
Keywords
pull, spec
Assigned to
Vladimir Panteleev
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2021-06-12T12:45:30Z
////// test.d //////
void main()
{
final switch (1)
{
case 1,:
break;
}
}
////////////////////
Allowed in grammar (CaseStatement -> ArgumentList which may end with ,) but not by DMD.
Comment #1 by dlang-bot — 2021-06-12T12:51:41Z
@CyberShadow created dlang/dmd pull request #12677 "Fix Issue 22019 - `case 1,:` allowed by grammar but not DMD" fixing this issue:
- Fix Issue 22019 - `case 1,:` allowed by grammar but not DMD
https://github.com/dlang/dmd/pull/12677
Comment #2 by dlang-bot — 2021-06-14T16:42:27Z
dlang/dmd pull request #12677 "Fix Issue 22019 - `case 1,:` allowed by grammar but not DMD" was merged into master:
- 3dda6c67b355239b0bca117bb71b09a2daf69996 by Vladimir Panteleev:
Fix Issue 22019 - `case 1,:` allowed by grammar but not DMD
https://github.com/dlang/dmd/pull/12677