Thread overview |
---|
January 07, 2010 [Issue 3683] New: Linker error on certain array expressions when using -release and -inline | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3683 Summary: Linker error on certain array expressions when using -release and -inline Product: D Version: 1.053 Platform: x86 OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: eriatarka84@gmail.com --- Comment #0 from Clemens <eriatarka84@gmail.com> 2010-01-06 17:11:27 PST --- Created an attachment (id=546) two source files and a build batch file to reproduce the bug It's pretty bizarre. I get a linker error from array expressions which seems to manifest itself only under the following set of circumstances: *) using certain complex array expressions, *) importing the module which does so from another one, *) specifying both -release and -inline, *) compiling and linking separately. Below is an example of an array expression which fails to link: buf1[] = buf1[] + 0.5f * buf2[]; And here is the output of OPTLINK: OPTLINK (R) for Win32 Release 8.00.2 Copyright (C) Digital Mars 1989-2009 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Test.obj(Test) Offset 0037AH Record Type 00C3 Error 1: Previous Definition Different : __arraySliceSliceExpMulAddSliceAssign_f --- errorlevel 2 I've attached a sample project to demonstrate the problem. Run build.bat to reproduce. Note that compiling and linking all D files in one step seems to avoid the issue, but since I want to use Rebuild this is not a convenient workaround for me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 07, 2010 [Issue 3683] Linker error on certain array expressions when using -release and -inline | ||||
---|---|---|---|---|
| ||||
Posted in reply to Clemens | http://d.puremagic.com/issues/show_bug.cgi?id=3683 Clemens <eriatarka84@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 01, 2012 [Issue 3683] Linker error on certain array expressions when using -release and -inline | ||||
---|---|---|---|---|
| ||||
Posted in reply to Clemens | http://d.puremagic.com/issues/show_bug.cgi?id=3683 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-02 02:41:15 EST --- *** This issue has been marked as a duplicate of issue 5592 *** -- 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