This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13658] [testcase] namespace association vs. templates part one
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 00:51:41 -0000
- Subject: [Bug c++/13658] [testcase] namespace association vs. templates part one
- References: <20040112164519.13658.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-03-02 00:51 -------
Subject: Re: [testcase] namespace association vs. templates part one
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| Can't you just declare the wrong swap() and define the correct (specialized)
| swap(), and dg-link the testcase?
I've just posted the following testcase
#include <vector>
struct foo { };
namespace std {
template<>
struct vector<foo> {
// no member
};
}
int main()
{
std::vector<foo> a;
std::vector<foo> b;
std::swap(a, b); // ERROR
}
The test fails if there is no error.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13658