digitalmars.D.bugs - [Issue 2220] New: Linking error with alias mixin params and anonymous methods - take 2
- d-bugmail puremagic.com (35/35) Jul 12 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2220
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 digitalmars.com ReportedBy: h3r3tic 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! --
Jul 12 2008