[Issue 2220] New: Linking error with alias mixin params and anonymous methods - take 2

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 12 00:31:16 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2220

           Summary: Linking error with alias mixin params and anonymous
                    methods - take 2
           Product: D
           Version: 1.032
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: link-failure
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: h3r3tic at mat.uni.torun.pl


This is a continuation of issue 211. The spec doesn't mention whether the
following should compile (if I remember correctly), but a linking error should
not be the result nevertheless:

// ---

template Foo(alias f) {
        void foo() {
                f();
        }
}

class Bar {
        mixin Foo!( function { } );
}

void main() {}

// ---

dmd issue211.d && issue211
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
issue211.obj(issue211)
 Error 42: Symbol Undefined _D8issue2113Bar14__funcliteral1MFZv


Thanks!


-- 



More information about the Digitalmars-d-bugs mailing list