[Bug c++/26536] wrong name lookup in a class template in presence of namespaces

2006-03-04 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-04 19:59 --- Comeau C++ also rejects this code while in strict mode: "ComeauTest.c", line 7: error: no instance of overloaded function "pm::inv_sign" matches the argument list The argument types that you use

[Bug c++/26536] wrong name lookup in a class template in presence of namespaces

2006-03-04 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-04 19:27 --- *** Bug 26563 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26536

[Bug c++/26536] wrong name lookup in a class template in presence of namespaces

2006-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-03 00:52 --- *** Bug 26535 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26536

[Bug c++/26536] wrong name lookup in a class template in presence of namespaces

2006-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 00:51 --- No this should not compile and here is why: class Rational { public: Rational& negate() { return *this; } }; namespace pm { Rational& inv_sign(Rational& x) { return x.negate(); } } Rational is in the topleve

[Bug c++/26536] wrong name lookup in a class template in presence of namespaces

2006-03-02 Thread gawrilow at math dot tu-berlin dot de
--- Comment #1 from gawrilow at math dot tu-berlin dot de 2006-03-03 00:47 --- Created an attachment (id=10957) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10957&action=view) this testcase should compile without diagnostics -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=265