[Bug c++/30508] Inherited inner template classes cannot access protected base data members
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 19 06:22:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-19 06:21 -------
Yes and this is not a bug, GCC is correct i is not defined as i is not a
dependent name so it gets bound at parsing time instead of doing instatitation.
You might think because the base class is an inner template but you can
specialize those too.
Also read:
http://gcc.gnu.org/gcc-3.4/changes.html
Under "In a template definition, unqualified names will no longer find members
of a dependent base (as specified by [temp.dep]/3 in the C++ standard). For
example,"
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30508
More information about the Gcc-bugs
mailing list