March 05, 2014 [Issue 12299] New: DMD accepts another invalid alias declaration | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: brian-schott@cox.net --- Comment #0 from brian-schott@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: ------- |
Copyright © 1999-2021 by the D Language Foundation