This patch prevents the use of requires expressions in non-template
scopes. This restriction was relaxed in the most recent version of
concepts lite, but the implementation requires some thought. For now,
I am marking it an error to make it consistent with previous versions
of the spec.

2013-10-25  Andrew Sutton  <andrew.n.sut...@gmail.com>
        * gcc/cp/parsre.c (cp_parser_requires_expression): Gracefully
        fail when parsing a requires expr outside a template.

Andrew Sutton

Attachment: template-requires.patch
Description: Binary data

Reply via email to