www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4003] New: The result changes only with the order of source files.

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

           Summary: The result changes only with the order of source
                    files.
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



from http://dusers.dip.jp/modules/forum/index.php?post_id=220

The bug occurred with changing the order of import, or order of files as
compiler options.


------------------------
main.d
------------------------
import std.stdio;
void main(){}


------------------------
test.d
------------------------
import std.typecons;
Tuple!(string) t;


-----------------------


Case of success:
dmd -unittest test.d main.d

Case of failure:
dmd -unittest main.d test.d
std\typecons.d(424): Error: static assert  (is(Tuple!(string,float) ==
Tuple!(string,float))) is false
std\typecons.d(413):        instantiated from here: Tuple!(string,float)
...

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


Simen Kjaeraas <simen.kjaras gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras gmail.com



PDT ---
*** Issue 4294 has been marked as a duplicate of this issue. ***

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


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla kyllingen.net
           Severity|normal                      |major



07:03:47 PDT ---
I'm raising the importance of this.  Every time your program uses two Phobos
modules that both import std.typecons, you risk running into this bug.

See bug 4294 for a marginally more narrow test case.

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



21:49:03 PDT ---
http://www.dsource.org/projects/dmd/changeset/527

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


Simen Kjaeraas <simen.kjaras gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pavel psi.cz



PDT ---
*** Issue 4299 has been marked as a duplicate of this issue. ***

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