This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Fix PR c++/60065.
- From: Jason Merrill <jason at redhat dot com>
- To: Adam Butcher <adam at jessamine dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org, Volker Reichelt <reichelt at gcc dot gnu dot org>
- Date: Mon, 24 Feb 2014 13:16:28 -0500
- Subject: Re: [PATCH 1/2] Fix PR c++/60065.
- Authentication-results: sourceware.org; auth=none
- References: <bc26decc23fc6efec8f58af88f3e405e at imap dot force9 dot net> <1393227162-26306-1-git-send-email-adam at jessamine dot co dot uk>
On 02/24/2014 02:32 AM, Adam Butcher wrote:
+static bool function_being_declared_is_template_p (cp_parser* parser)
Function name should be at the beginning of the next line.
- if (scope->kind != sk_template_parms)
+ if (scope->kind != sk_template_parms
+ || !function_being_declared_is_template_p (parser))
Is there a reason not to move the scope->kind check into the new function?
Jason