// tmp7.d: template Foo(alias f) { } class Bar { mixin Foo!( function {} ); } void main() { } // result: D:\WINDOWS\system32\cmd.exe /c dmd tmp7.d d:\coding\dmd\bin\..\..\dm\bin\link.exe tmp7,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved tmp7.obj(tmp7) Error 42: Symbol Undefined _D4tmp73Bar14__funcliteral1FZv
test cases: http://dstress.kuehne.cn/run/m/mixin_23_A.d http://dstress.kuehne.cn/run/m/mixin_23_B.d http://dstress.kuehne.cn/run/m/mixin_23_C.d http://dstress.kuehne.cn/run/m/mixin_23_D.d Currently (DMD-0.178) those test cases cause on Linux the compile time message: run/m/mixin_23_A.d(19): delegate dstress.run.m.mixin_23_A.C.__dgliteral1 literals cannot be class members
Fixed dmd 1.032 and 2.016
Thanks, but the following code still breaks: // --- 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 I hope it's fine to reopen the issue. I can submit a new one if that's not a good option ;)
If the original test case works now, then it is a new bug and should be filed as such.
Ok, sorry then. I've opened issue 2220.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル