The last patch introduced a regression. This ensures that we don't
generate false positives diagnosing errors in non-template contexts.

2013-10-07  Andrew Sutton  <andrew.n.sut...@gmail.com>
        * gcc/cp/cp-tree.h (check_constrained_friend): Take requirements as
        an argument.
        * gcc/cp/constraints.cc (check_constrained_friend): Do not diagnose
        errors in unconstrained friend declarations.
        * gcc/cp/parser.cc (cp_parser_member_declaration): Pass current
        requirements to check_constrained_friend.

Andrew Sutton

Attachment: friends-4.patch
Description: Binary data

Reply via email to