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++/32762] Lost variable scope with template class that inherits from templated class using args of the first class



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-07-14 05:19 -------
> The workaround for now is to replace x[i] with this->x[i].
This is not just a workaround but the correct fix.  the reason is because x is
not dependent so it has to be looked up at definition time and not instantation
time (and definition time does not take into account depdent inherited
classes).  See http://gcc.gnu.org/gcc-3.4/changes.html for more info.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
  GCC build triplet| i486-linux-gnu             |i486-linux-gnu
   GCC host triplet| i486-linux-gnu             |i486-linux-gnu
 GCC target triplet| i486-linux-gnu             |i486-linux-gnu
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32762


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