Bug 784 – regression: [Issue 402] compiler crash with mixin and forward reference

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
Linux
Creation time
2007-01-01T15:23:00Z
Last change time
2014-02-15T13:18:41Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-01-01T15:23:51Z
As of DMD-0.178 the segfault issue described in issue #402 resurfaced: # template Foo(alias b){ # int a() { # return b; # } # } # # void test(){ # mixin Foo!(y) y; # } dmd -c nocompile/a/alias_39_B.d > nocompile/a/alias_39_B.d(21): mixin Foo!(y) cannot resolve forward reference > nocompile/a/alias_39_B.d(21): mixin Foo!(y) cannot resolve forward reference > /opt/dmd/bin/dmd: line 2: 9250 Segmentation fault /opt/dmd/0.178/bin/dmd-0.178.bin -I/opt/dmd/0.178/src/phobos -L-L/opt/dmd/0.178/lib $* test case: http://dstress.kuehne.cn/nocompile/a/alias_39_B.d
Comment #1 by bugzilla — 2007-02-12T03:35:18Z
Fixed DMD 1.005