Bug 4294 – Importing std.typecons in two modules while unittesting breaks program

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-06-08T03:39:00Z
Last change time
2015-06-09T05:14:52Z
Assigned to
nobody
Creator
simen.kjaras

Comments

Comment #0 by simen.kjaras — 2010-06-08T03:39:07Z
////////////////////// module a; import std.typecons; alias Tuple!( float ) foo; ////////////////////// module b; import std.typecons; ////////////////////// Compiling with "dmd a b -unittest" gives the following output: E:\DMD\DMD2\windows\bin\..\..\src\phobos\std\typecons.d(424): Error: static assert (is(Tuple!(string,float) == Tuple!(string,float))) is false E:\DMD\DMD2\windows\bin\..\..\src\phobos\std\typecons.d(413): instantiated from here: Tuple!(string,float) E:\DMD\DMD2\windows\bin\..\..\src\phobos\std\typecons.d(423): instantiated from here: slice!(1,3) E:\DMD\DMD2\windows\bin\..\..\src\phobos\std\typecons.d(420): instantiated from here: Tuple!(int,string,float,double) a.d(3): instantiated from here: Tuple!(float)
Comment #1 by simen.kjaras — 2010-06-08T03:57:39Z
Allow me to rectify a mistake in the original post. "dmd a b -unittest" compiles with no problems. "dmd b a -unittest" is what causes the posted bug.
Comment #2 by simen.kjaras — 2010-06-08T06:41:43Z
*** This issue has been marked as a duplicate of issue 4003 ***