[Issue 17278] New: [ICE] dmd 2.075 segfaults on error in implicitly imported module
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 27 12:22:49 PDT 2017
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 at puremagic.com
Reporter: ketmar at 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'
--
More information about the Digitalmars-d-bugs
mailing list