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] Fix 21903


Nathan Sidwell <nathan@codesourcery.com> wrote:

>> ! /* An un-parsed default argument.  Looks like an IDENTIFIER_NODE.
>> !    TREE_CHAIN is used to hold instantiations of functions that had to
>> !    be instantiated before the argument was parsed.  */
>>   DEFTREECODE (DEFAULT_ARG, "default_arg", tcc_exceptional, 0)


Why not using an additional new field in tree_default_arg instead (e.g. a
VEC of trees)? If we ever want to get rid of TREE_CHAIN, we should stop
adding new overloaded uses.
-- 
Giovanni Bajo


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