January 01, 2007 [Issue 784] New: regression: [Issue 402] compiler crash with mixin and forward reference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=784 Summary: regression: [Issue 402] compiler crash with mixin and forward reference Product: D Version: 0.178 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: thomas-dloop@kuehne.cn 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 -- |
Copyright © 1999-2021 by the D Language Foundation