[Bug libstdc++/51083] gnu++0x: resolving overloaded functions belonging to different namespaces
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 10 19:06:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51083
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-10 19:03:37 UTC ---
slightly further reduced
#include <complex>
namespace a
{
template<typename> class Mat { };
template<typename T>
struct Mat2
{
Mat2(Mat<T>) { }
};
template<typename T>
int
imag(Mat2<T>)
{ return 1; }
}
int main()
{
a::Mat< std::complex<double> > c;
return imag(c);
}
More information about the Gcc-bugs
mailing list