This is the mail archive of the gcc-patches@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: [Patch] Document pitfalls of two-stage name lookup




--On Monday, February 03, 2003 08:35:31 PM -0600 Wolfgang Bangerth <bangerth@ticam.utexas.edu> wrote:

+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
+3.4.

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                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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