This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13594] New: namespace association vs. templates part two
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2004 03:06:38 -0000
- Subject: [Bug c++/13594] New: namespace association vs. templates part two
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
From:
http://gcc.gnu.org/ml/libstdc++/2004-01/msg00047.html
Ugh, more namespace association fallout. It looks like associated namespaces are
not being considered matches. This is probably related to (or the same as) the
other namespace association issue w/ std::swap that Richard Sandiford found.
#if 1
namespace std
{
template<typename T1, typename T2 = int>
class vector;
template<typename T1, typename T2>
class vector;
}
#else
namespace __gnu_norm
{
template<typename T1, typename T2 = int>
class vector;
}
namespace std
{
using namespace __gnu_norm __attribute__ ((strong));
}
namespace std
{
template<typename T1, typename T2>
class vector;
}
#endif
class Foo { };
typedef std::vector<Foo> FooVec;
--
Summary: namespace association vs. templates part two
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: jason at redhat dot com
ReportedBy: bkoz at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,larsbj at gullik dot
net,rsandifo at redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13594