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 21353


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


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