This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Rewrite convert_nontype_argument
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, Jason Merrill <jason at redhat dot com>,Giovanni Bajo <giovannibajo at libero dot it>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Jul 2004 09:32:32 -0700
- Subject: Re: [C++ PATCH] Rewrite convert_nontype_argument
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.44.0407201924280.5412-100000@www.eyesopen.com>
Roger Sayle wrote:
My hope is that once pointer member functions are given the correct
TYPE_MAIN_VARIANT, that this call can be removed.
The key obstacle to this, by the way, is that the same C++ function type
is not always the same FUNCTION_TYPE node. There are at least two
things included in the FUNCTION_TYPE that are not part of the type --
default arguments and exception-specifications. Neither of those should
actually be encoded in the FUNCTION_TYPE; the current situation is a
combination of historical accident and evil G++ extensions. It is
fixable, but non-trivial. If this turns out to be a compile-time
performance hotspot, it will be worthwile to do it.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com