This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9419: inherited member in template doesnt work
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rassahah at neofonie dot de
- Date: 23 Jan 2003 16:21:19 -0000
- Subject: Re: c++/9419: inherited member in template doesnt work
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rassahah at neofonie dot de, gcc-gnats at gcc dot gnu dot org
Synopsis: inherited member in template doesnt work
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 16:21:19 2003
State-Changed-Why:
That's how C++ is supposed to work. Name loopup inside
templates does not look into base classes, and since your
variable's name is not obviously template type dependent,
you need to tell the compiler that it depends on the
template type, for example by using this->
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9419