www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22048] New: [REG2.095] `alias a = int p;` compiles

https://issues.dlang.org/show_bug.cgi?id=22048

          Issue ID: 22048
           Summary: [REG2.095] `alias a = int p;` compiles
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P4
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

Noticed that this weird syntax is accepted when filing the previous issue:

alias a = int p;

Appears to be a regression, introduced in
https://github.com/dlang/dmd/pull/11832

--
Jun 19