c++/9102: no matching function by using nested-template base class
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Sat Jan 4 15:24:00 GMT 2003
Synopsis: no matching function by using nested-template base class
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jan 4 07:24:46 2003
State-Changed-Why:
Not a bug. In your code, you have:
namespace _base {
...
template <class T> class _listnode { ... };
...
template <class T> class _list {
...
inline bool reset(_listnode<T>*&);
The '_listnode<T>' for this 'reset' function refers to
'base::_listnode<T>', not '::_listnode<T>'. This is the
way name lookup in C++ works.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9102
More information about the Gcc-bugs
mailing list