This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template inheritance & this->
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "Grigorio V. Moshkin" <grigorio at garant dot ru>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Feb 2005 10:56:49 -0500
- Subject: Re: template inheritance & this->
- References: <200502011846.56390.grigorio@garant.ru>
On Feb 1, 2005, at 10:46 AM, Grigorio V. Moshkin wrote:
Hi!
Are the comments fully correct? I.e. ISO C++ really denies that,
and that's the only reason because gcc 3.4.x doesn't compile that?
(gcc 3.3.3 does).
Read the release notes for 3.4.x. It says the code is invalid C++.
Basically namelookup rules in templates are special in that the normal
rules apply for non-dependent names but it is applied twice to dependent
names (this is a very over-simplification because there are other rules
which cause the rule to apply only once).
-- Pinski