digitalmars.D.bugs - [Issue 784] New: regression: [Issue 402] compiler crash with mixin and forward reference
- d-bugmail puremagic.com (29/32) Jan 01 2007 http://d.puremagic.com/issues/show_bug.cgi?id=784
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.dnocompile/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 --
Jan 01 2007