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][C++] Get rid of TREE_CHAIN use for TREE_VEC (NON_DEFAULT_TEMPLATE_ARGS_COUNT)


On 08/17/2012 01:26 PM, Richard Guenther wrote:
This gets rid of this field, pushing it into a short int in tree_base
(hopefully 2^16 non-defaulted template args are enough ...).
Honestly, I don't think it's a trivial issue. Often and often, while hacking the C++ front-end I noticed the integer typee which we use while processing templates and I become nervous even when I see ints. In these 64-bit days and with people using all sorts of crazy template metaprogramming, if I were to design these things from scratch I guess that I would just use longs everywhere and be done with it. At minimum, compare to clang? But hey, I'm new to most of the C++ front-end internals maybe people already discussed these topics in the past, even at ISO level, I don't know. I'm curious to hear Jason anyway.

Paolo.


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