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: [email protected]
Reporter: [email protected]
=== 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'
--