http://d.puremagic.com/issues/show_bug.cgi?id=5824
Summary: Linking of objs containing mixin and function literal fails Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: youx...@gmail.com --- Comment #0 from Hisayuki Mima <youx...@gmail.com> 2011-04-09 07:41:05 PDT --- Linking of objs fails when I compile two source codes into two .obj files and link two objs. main.d: module main; import hoge; void main(){} hoge.d: module hoge; int foo(alias func)(){ return func(13); } mixin(` int bar(){ return foo!(function(int i){ return i; })(); } `); enum int foobar = bar(); command: dmd -c main.d dmd -c hoge.d dmd main.obj hoge.obj Error message: OPTLINK (R) for Win32 Release 8.00.8 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html hoge.obj(hoge) Offset 00238H Record Type 00C3 Error 1: Previous Definition Different : _D4hoge3barFZi14__funcliteral3FiZi --- errorlevel 1 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------