Bug 12299 – DMD accepts invalid alias of 'ref int'

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-04T23:05:00Z
Last change time
2014-04-22T21:17:36Z
Keywords
accepts-invalid, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2014-03-04T23:05:20Z
Try to compile this with DMD: alias ref int x; alias y = ref int; The parser accepts the first declaration, but not the second. The language specification has no grammar rules that can be used to produce the first declaration. Related: https://github.com/Hackerpilot/Dscanner/issues/125
Comment #1 by andrej.mitrovich — 2014-04-22T21:17:36Z
*** This issue has been marked as a duplicate of issue 11632 ***