This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] fix 21353
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: 17 Oct 2005 18:21:43 +0200
- Subject: Re: [C++ PATCH] fix 21353
- References: <43538A16.4080704@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> writes:
| Hi,
| I've installed this patch to fix 21353, failure to check a member
| function's default argument. When cleaning this up, I noticed
| check_default_argument was unneccesarily checking
| processing_template_decl and uses_template_parms. I moved the
| processing_template_decl check to the callers. The only other call is
| in pt.c when we are instantiating a template function's default
| argument. If we did more call processing of a non-dependent call in
| build_over_call, we'd warn about that during parse time. I've not
| made that change as it would slow the compiler down.
|
| I'm not going to port this to 3.4 as it is an accepts-ill-formed
Agreed.
-- Gaby