www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12299] New: DMD accepts another invalid alias declaration


           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


Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 04 2014