March 27, 2017 [Issue 17278] New: [ICE] dmd 2.075 segfaults on error in implicitly imported module | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17278 Issue ID: 17278 Summary: [ICE] dmd 2.075 segfaults on error in implicitly imported module 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 === main.d === import second; XPixmap[1] tilexpm; void loadTileImages () { tilexpm = XPixmap(); } === === second.d === struct XRefCount(T) { this (this) { doIncRef; } } alias XPixmap = XRefCount!XlibPixmap; struct XlibPixmap {} === "dmd main.d" segfaults: doIncRef zsh: segmentation fault dmd main.d but: "dmd main.d second.d" gives the proper error message: second.d(2): Error: undefined identifier 'doIncRef' -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply