www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2003] New: Absolute path for -odobjdir triggers compiler stack overflow

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2003

           Summary: Absolute path for -odobjdir triggers compiler stack
                    overflow
           Product: D
           Version: 1.028
          Platform: PC
               URL: http://pastebin.com/f7799ca17
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code, ice-on-valid-code
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: CppCoder gmail.com


When passing an absolute path to the dmd compiler under Windows XP SP2, dmd.exe
will return "Stack Overflow" with no other information.  It seems at the very
least a valid file has to be passed.  The file can be blank, a valid or invalid
D input file; It does not seem the file even gets parsed, so I'd imagine the
bug is in the argument parsing.

example:
dmd.exe -odobjdirC:\AAAA test.d

test.d being a blank d file.  It seems the file must at least be a d source
file.  If an executable or library is passed for example, it will not trigger a
stack overflow.


-- 
Apr 16 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2003


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2008-04-22 20:47 -------
I can't duplicate a problem. BTW, the correct command line syntax is:

dmd.exe -odC:\AAAA test.d


-- 
Apr 22 2008