Thread overview
[Issue 8126] New: Internal corruption in DMD when built with MSVC++ (unless my version was just messed up...)
May 21, 2012
Walter Bright
May 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8126

           Summary: Internal corruption in DMD when built with MSVC++
                    (unless my version was just messed up...)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: wfunction@hotmail.com


--- Comment #0 from wfunction@hotmail.com 2012-05-20 17:13:23 PDT ---
When I try to compile the code below:

import std.algorithm, std.file;
void main() { foo(copy); }

with a version 2.60 beta of DMD that I built with MSVC, I get back gibberish:

Error: undefined identifier foo
À+?hŸà‘¿;¢ð: Error: no overload matches for copy(Range1,Range2) if
(isInputRange!(Range1) && isOutputRange!(Range2,ElementType!(Range1)))

It doesn't happen with the version of DMD that you build with DMC, though.

I think it's a buffer overflow bug, unless my version just messed up...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8126


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-05-20 22:06:48 PDT ---
Why is this marked critical?

Although people have submitted patches to support MSVC compilation of DMD, and those patches have been incorporated, testing of this build is not done and is not officially supported.

In general, if you want to work with an MSVC built version of DMD, you'll need to be willing to chase down any failures in it. I'll be happy to accept pull requests to fix them.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8126


wfunction@hotmail.com changed:

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


--- Comment #2 from wfunction@hotmail.com 2012-05-20 22:10:39 PDT ---
I marked it as critical since it indicated a likely (buffer overflow?) bug in DMD... didn't know it wasn't supported though. Thanks for the info.

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