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