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: [C++ PATCH] Rewrite convert_nontype_argument


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


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