www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8126] New: Internal corruption in DMD when built with MSVC++ (unless my version was just messed up...)

reply d-bugmail puremagic.com writes:
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



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 20 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8126


Walter Bright <bugzilla digitalmars.com> changed:

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



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 20 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8126


wfunction hotmail.com changed:

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



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: -------
May 20 2012