[Issue 12299] New: DMD accepts another invalid alias declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 4 23:05:23 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12299
Summary: DMD accepts another invalid alias declaration
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: brian-schott at cox.net
--- Comment #0 from brian-schott at cox.net 2014-03-04 23:05:20 PST ---
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
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list