[c++-concepts]: Requires expression
Andrew Sutton
andrew.n.sutton@gmail.com
Fri Jun 21 19:39:00 GMT 2013
Attached is the stubbed out parsing for requires expressions. I plan
on implementing semantics next.
I haven't pushed this into a git branch since its a completely
separate change from the previous patch. Should I create a new branch
for separate work?
Changelog:
2013-06-21 Andrew Sutton <andrew.n.sutton@gmail.com>
* gcc/cp/parser.c (cp_parser_requires_clause): Pulled out of
cp_parser_requires_clause_opt for reuse in the requires expr parser.
(cp_parser_requires_expression): New, along with a family of
sub-expression parsers for the new feature.
* gcc/cp/semantics.c (finish_requires_expr): Stub.
(finish_syntax_requirement): Stub.
(finish_type_requirement): Stub.
(finish_constexpr_requirement): Stub.
(finish_noexcept_requirement): Stub.
(finish_requires_expr): Stub.
* gcc/cp/cp-tree.h: (finish_requires_expr): New.
(finish_syntax_requirement): New.
(finsih_type_requirement): New.
(finish_constexpr_requirement): New.
(finish_noexcept_requirement): New.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reqexpr-1.patch
Type: application/octet-stream
Size: 12857 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130621/42d32c9a/attachment.obj>
More information about the Gcc-patches
mailing list