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