This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9410: [3.4 regression] inability to access a base classes' member from a templated derived class
- From: bangerth at dealii dot org
- To: andrew at andypo dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 23 Jan 2003 00:25:35 -0000
- Subject: Re: c++/9410: [3.4 regression] inability to access a base classes' member from a templated derived class
- Reply-to: bangerth at dealii dot org, andrew at andypo dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: [3.4 regression] inability to access a base classes' member from a templated derived class
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 00:25:35 2003
State-Changed-Why:
That's indeed a complexity of C++. A lone identifier (like "a"), that is not obviously template dependent, will be looked
up at the time the compiler sees the class, not at instantiation
time. However, at that point, no information about base
classes is available yet, so it will not find members of
the base class.
Regards
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9410