This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/4] [lambda] Support implicit conversion of a stateless generic lambda to a function pointer.
- 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, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Andrew Sutton <andrew dot n dot sutton at gmail dot com>
- Date: Sat, 03 Aug 2013 12:18:57 -0400
- Subject: Re: [PATCH 2/4] [lambda] Support implicit conversion of a stateless generic lambda to a function pointer.
- References: <51E96FB9 dot 6090108 at redhat dot com> <1375359930-12871-1-git-send-email-adam at jessamine dot co dot uk> <1375359930-12871-3-git-send-email-adam at jessamine dot co dot uk>
On 08/01/2013 08:25 AM, Adam Butcher wrote:
+ = DECL_TEMPLATE_INFO (callop)
+ && DECL_TEMPLATE_RESULT (DECL_TI_TEMPLATE (callop)) == callop;
An expression broken across lines should be parenthesized.
And let's move the building of 'call' for the non-template case up to be
with the template case.
Otherwise, looks good!
Jason