This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26536] wrong name lookup in a class template in presence of namespaces
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2006 19:59:04 -0000
- Subject: [Bug c++/26536] wrong name lookup in a class template in presence of namespaces
- References: <bug-26536-2311@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 used are: (Rational)
Op& assign(Op& a) const { return inv_sign(a); }
^
detected during instantiation of "Op &pm::neg_scalar<Op>::assign(Op
&) const [with Op=Rational]" at line 23
1 error detected in the compilation of "ComeauTest.c".
Test it for yourself at:
http://www.comeaucomputing.com/tryitout/
The default settings for the web page is strict mode.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26536