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]

[Bug c++/30508] Inherited inner template classes cannot access protected base data members



------- 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


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