This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9102: no matching function by using nested-template base class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]