Bug 17278 – [ICE] dmd 2.075 segfaults on error in implicitly imported module

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2017-03-27T19:22:49Z
Last change time
2022-11-18T11:00:44Z
Assigned to
No Owner
Creator
Ketmar Dark

Comments

Comment #0 by ketmar — 2017-03-27T19:22:49Z
=== 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'
Comment #1 by razvan.nitu1305 — 2022-11-18T11:00:44Z
I cannot reproduce this. I get the undefined identifier error in both situations.