This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c++-concepts] constrained friends redux
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Andrew Sutton <andrew dot n dot sutton at gmail dot com>, Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 05 Oct 2013 01:26:55 +0200
- Subject: Re: [c++-concepts] constrained friends redux
- Authentication-results: sourceware.org; auth=none
- References: <CANq5SytP8Xsnrk-Zb=po4_gjRXcaAORcR2oWy1c6aVM8GWEwSw at mail dot gmail dot com> <524C4ED9 dot 5030407 at redhat dot com> <CANq5Sysm8ghK_4K=ogUMzOQLYiRW3ymEHJzns39g=0e2JuDVEQ at mail dot gmail dot com> <524EF87E dot 6070106 at redhat dot com> <CANq5SyufjiC_arcDmzi6ieBk56b1GydDuYUu1QYkYzLPG=5hDg at mail dot gmail dot com>
Hi Andrew,
On 10/04/2013 07:36 PM, Andrew Sutton wrote:
+ if (!check_template_constraints (tmpl, args))
+ {
+ location_t loc = DECL_SOURCE_LOCATION (function);
+ error ("%qD is not a viable candidate", function);
+ diagnose_constraints (input_location, tmpl, args);
+ return error_mark_node;
+ }
Nit: loc seems unused.
Thanks,
Paolo.