On Tue, 08 Jun 2010 12:31:50 +0200, Simen kjaeraas wrote: > Lars T. Kyllingstad <pub...@kyllingen.nospamnet> wrote: > >> FWIW, I've run across the same error, while writing code that had >> nothing to do with tuples. And I've seen others complaining about it >> too. It seems to be a rather elusive bug in Phobos. > > This has now been tracked down to the importing of std.typecons in two > included files. > > Test case: > > ////////////////////// > module a; > import std.typecons; > alias Tuple!( float ) foo; > > ////////////////////// > module b; > import std.typecons;
I'm not sure I understand this. Do you then import a and b into another module to reproduce the error? This doesn't do it for me... Anyway, I was wrong calling this a Phobos bug. It's clearly a DMD bug, since the error message static assert (is(Tuple!(string,float) == Tuple!(string,float))) is false is completely meaningless.