Thread overview | |||||
---|---|---|---|---|---|
|
April 09, 2011 [Issue 5824] New: Linking of objs containing mixin and function literal fails | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: youxkei@gmail.com --- Comment #0 from Hisayuki Mima <youxkei@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: ------- |
April 23, 2012 [Issue 5824] Linking of objs containing mixin and function literal fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hisayuki Mima | http://d.puremagic.com/issues/show_bug.cgi?id=5824 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-23 09:02:10 PDT --- This example compiles and links with no error on 2.059 Win32. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 19, 2012 [Issue 5824] Linking of objs containing mixin and function literal fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hisayuki Mima | http://d.puremagic.com/issues/show_bug.cgi?id=5824 Hisayuki Mima <youxkei@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation