This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51577] dependent name lookup finds operator in global namespace
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jan 2012 22:53:40 +0000
- Subject: [Bug c++/51577] dependent name lookup finds operator in global namespace
- Auto-submitted: auto-generated
- References: <bug-51577-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-21 22:53:40 UTC ---
the problem exists for any operator, it's not specific to ==
here's a reduced form using unary operator+
template<typename T>
void test( T v )
{
+v;
}
namespace A
{
struct X { };
}
void operator+(A::X) { }
int main()
{
test( A::X() );
}