www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14177] New: ICE(statement.c) recursive aliases

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

          Issue ID: 14177
           Summary: ICE(statement.c) recursive aliases
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ketmar ketmar.no-ip.org

the following (dustmited) code gives ICE:

dmd: statement.c:752: ErrorStatement::ErrorStatement(): Assertion
`global.gaggedErrors || global.errors' failed.

=== cut here ===
alias Primitive = Atom*;
alias Atom = Primitive;

void main () {
  Atom atom;
  atom;
}

--
Feb 13 2015