This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Default arguments and FUNCTION_TYPEs
Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> template<int> struct X { };
>
> void fu(int a, X<sizeof(a)>) { } // #1
I gave a look to PR 17395 and you are probably right. This testcase requires
us to build PARM_DECLs even for function declarations. That's really too
bad.
You should though measure memory usage for large C++ testcases when building
PARM_DECLs immediately. If they raise too much, that's a serious regression.
--
Giovanni Bajo