Thread overview
[Issue 4687] New: Strange error on simple main with response file from xfbuild
Aug 20, 2010
Nick Sabalausky
Aug 20, 2010
Nick Sabalausky
Nov 24, 2011
Andrej Mitrovic
August 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4687

           Summary: Strange error on simple main with response file from
                    xfbuild
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-19 19:43:24 PDT ---
Created an attachment (id=731)
Response file from xfbuild that results in an error on dmd

I can't tell if this is a problem with DMD or with the response file generated from xfbuild ( http://bitbucket.org/h3r3tic/xfbuild/wiki ), so I'm filing tickets in both places.

With the file 'testConv.d':
-----------------------------------
module testConv;
import std.conv;
void main()
{
    int x = to!int("7");
}
-----------------------------------

Doing "dmd testConv.d" works fine. Doing "xfbuild testConv.d" generates the attached DMD response file "xfbuild.b10e00.rsp" (add the "+keeprsp" param to prevent xfbuild from automatically deleting the response file). Then, doing "dmd @xfbuild.b10e00.rsp" results in an error:

D:\DevTool\dmd\bin\..\src\phobos\std\algorithm.d(2890): Error:
cast(string)_param_1 is not an lvalue

Note that the paths to phobos, in both that response file and the error message, *are* the correct paths to phobos on my system (yes, I do move "dmd\windows\*" to "dmd\*", but I'm fairly certain that's not the problem here. If it were, I'd most likely be experiencing this problem elsewhere, but I'm not. For instance, rdmd works fine).

I'm using DMD 2.048.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4687



--- Comment #1 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-19 20:01:20 PDT ---
ticket over on xfbuild: http://bitbucket.org/h3r3tic/xfbuild/issue/20/strange-error-on-simple-main-when-using

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 24, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4687


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |WORKSFORME


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-11-24 10:33:00 PST ---
Old bug is old! :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------