www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19608] New: [ICE] dmd/backend/cod1.d(3826): Assertion `0'

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

          Issue ID: 19608
           Summary: [ICE] dmd/backend/cod1.d(3826): Assertion `0' failed.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Minimal test
---
import core.stdc.stdarg;
void f(int) {}
void g(...) {}
void h()
{
    g(*&f);
}
---

When ENABLE_RELEASE=1

Segmentation fault

When ENABLE_DEBUG=1

dmd: dmd/backend/cod1.d:3826: Assertion `0' failed.
Aborted

--
Jan 23