www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4318] New: compile with flag unittest, depending on the order files, Access Violation

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

           Summary: compile with flag unittest, depending on the order
                    files, Access Violation
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: pavel psi.cz


--- Comment #0 from pavel <pavel psi.cz> 2010-06-15 02:24:40 PDT ---
uses dmd 2.047  

main.d
------------------------
import std.stdio;

int main(string[] args)
{
  int[] a = [1,2,3,4]
  writeln(s);
  return 0;
}
------------------------
one.d
------------------------
module one;
import std.string;
------------------------

dmd main.d one.d -oftest -unittest //compile is successful
test.exe run and give 
1 2 3 4

dmd one.d main.d -oftest -unittest //compile is successful
test.exe run and give
object.Error: Access Violation

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 15 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4318



--- Comment #1 from pavel <pavel psi.cz> 2010-06-15 23:26:48 PDT ---
(In reply to comment #0)
 uses dmd 2.047  
 
 main.d
 ------------------------
 import std.stdio;
 
 int main(string[] args)
 {
   int[] a = [1,2,3,4]
   writeln(s);  
   return 0;
 }
 ------------------------
 one.d
 ------------------------
 module one;
 import std.string;
 ------------------------
 
 dmd main.d one.d -oftest -unittest //compile is successful
 test.exe run and give 
 1 2 3 4
 
 dmd one.d main.d -oftest -unittest //compile is successful
 test.exe run and give
 object.Error: Access Violation
misttype writeln(s) -> writeln(a) is ok -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 15 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4318


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> 2012-10-21
20:46:48 PDT ---
Can't reproduce.

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