[Bug c++/21008] [3.4/4.0/4.1 Regression] Acess failure in accessing data member of base class from derived template class
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 15 05:29:00 GMT 2005
------- Additional Comments From bangerth at dealii dot org 2005-04-15 05:29 -------
A::foo_ is not template-dependent, so it is looked up and bound at the time
of template definition, not at instantiation time. Because template-dependent
base classes are not visible at the time, the access is assumed to be from
the outside, not within the class hierarchy through this->, and the error,
though surprising, is correct.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21008
More information about the Gcc-bugs
mailing list