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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 1 13:23:53 PST 2007


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 at digitalmars.com
        ReportedBy: thomas-dloop at 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


-- 



More information about the Digitalmars-d-bugs mailing list