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]

Re: template inheritance & this->



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


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