www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19336] New: [ICE] segfault on invalid code

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

          Issue ID: 19336
           Summary: [ICE] segfault on invalid code
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: paolo.invernizzi gmail.com

OSX, dmd 2.083.0 beta 1 and master

---
struct Foo {
        Template!() a(a.x);
}
---

dmd  -c -o-  app.d
app.d(3): Error: template instance `Template!()` template Template is not
defined
Segmentation fault: 11

--
Oct 27 2018