www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13504] New: ICE(backend/cgelem.c 2418) with "-O -cov"


          Issue ID: 13504
           Summary: ICE(backend/cgelem.c 2418) with "-O -cov"
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice, ice-on-valid-code
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: sinkuu aol.jp

bool func(T)()
    return true;

void main()
    assert(func!int() || int.sizeof);

This code produces an ICE when compiled with -O and -cov. 

$ dmd -O -cov -c ice.d
Internal error: backend/cgelem.c 2418

Sep 20 2014