This is the mail archive of the
mailing list for the GCC project.
Re: [Patch] Document pitfalls of two-stage name lookup
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 04 Feb 2003 11:50:26 -0800
- Subject: Re: [Patch] Document pitfalls of two-stage name lookup
--On Monday, February 03, 2003 08:35:31 PM -0600 Wolfgang Bangerth
+instantiating it. This is called two-stage (or dependent) name lookup,
+and G++ only implements it since version 3.4.
How about "G++ implements some features of two-stage name lookup at this
point and is gradually moving towards full compliance with the standard."?
+Note that most compilers get this wrong and accept above code without an
+error. However, this is spurious, since they just don't implement
+two-stage name lookup correctly. This includes G++ versions prior to
Actually, a lot of compilers get this right (all EDG compilers have a mode
in which they get it right, for example). So, how about:
"Some compilers get this wrong. ..."
Thanks for writing this up!
Mark Mitchell email@example.com
CodeSourcery, LLC http://www.codesourcery.com