This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Default arguments and FUNCTION_TYPEs
"Giovanni Bajo" <rasky@develer.com> writes:
| 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.
I guess we don't need to implement the language, we can be very fast :-)
|
| 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.
Once I'm finished, I'll post the patch and I would probably ask you
help in the testing department and suggest better concrete
solution. That PR needs to be fixed.
-- Gaby