Thread overview
[Issue 14112] Phobos git master doesn't build with MSVC-built compiler (DIP25)
Feb 06, 2015
Walter Bright
Feb 22, 2015
Walter Bright
Feb 22, 2015
Benjamin Thaut
Mar 04, 2015
Vladimir Panteleev
Mar 05, 2015
Benjamin Thaut
Mar 05, 2015
Vladimir Panteleev
Mar 20, 2015
Rainer Schuetze
Mar 20, 2015
Vladimir Panteleev
February 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
I tried it and it works with the DMC build DMD. Looks like the VS C++ compiler has a bug in it!

Does VS have any valgrind-like feature you can try?

--
February 22, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
I also ran valgrind on 64 bit dmd compiling test.d on Linux. No memory corruption was detected.

--
February 22, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

Benjamin Thaut <code@benjamin-thaut.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@benjamin-thaut.de

--- Comment #3 from Benjamin Thaut <code@benjamin-thaut.de> ---
Valdimir can you give more information please? If I build dmd git head with Visual Studio 2013 your test case does not fail. It works both with a debug and release dmd compiled in 64-bit. Which Visual Studio Version are you using? Does it happen both in release and debug?

--
March 04, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

--- Comment #4 from Vladimir Panteleev <thecybershadow@gmail.com> ---
(In reply to Benjamin Thaut from comment #3)
> Valdimir can you give more information please? If I build dmd git head with Visual Studio 2013 your test case does not fail. It works both with a debug and release dmd compiled in 64-bit. Which Visual Studio Version are you using? Does it happen both in release and debug?

That's strange. I can reproduce the problem after I build DMD with the "Release" configuration and "x64" platform with either VS2010 or VS2013.

Here is the dmd.exe I get, does it happen on your system?

http://dump.thecybershadow.net/3b481e0ae99981873edc3c0f5f7f158a/dmd.exe

--
March 05, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

--- Comment #5 from Benjamin Thaut <code@benjamin-thaut.de> ---
When you build with vs2013 do you upgrade the solution to the 2013 compiler first? Or do you simply build it using the vs2010 compiler?

--
March 05, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

--- Comment #6 from Vladimir Panteleev <thecybershadow@gmail.com> ---
I build it with the VS2010 compiler (from the command line).

Here are my build commands:

set PATH=C:\Soft\dm\bin;%WINDIR%\System32;C:\Soft\Tools
set PATH=%PATH%;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
call "C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\bin\amd64\vcvars64.bat"

msbuild /p:Configuration=Release /p:Platform=x64 dmd_msc_vs10.sln if errorlevel 1 exit 1

copy /y vcbuild\x64\Release\dmd_msc.exe dmd.exe
copy /y vcbuild\x64\Release\dmd_msc.pdb dmd.pdb

--
March 20, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #7 from Rainer Schuetze <r.sagitario@gmx.de> ---
Building with VS2013 works for me, too, but I don't have the VS2010 toolset installed. Your prebuilt binary fails on my system aswell.

Does it help to switch the "Platform Toolset" to v120?

--
March 20, 2015
https://issues.dlang.org/show_bug.cgi?id=14112

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #8 from Vladimir Panteleev <thecybershadow@gmail.com> ---
Well, actually, the regression doesn't happen for me any more with latest master. I suppose I could bisect it if someone is very curious, but I don't look forward doing it by hand since Digger doesn't build DMD with VS.

--