[c++-concepts] template parameter constraints
Andrew Sutton
andrew.n.sutton@gmail.com
Tue Sep 10 21:38:00 GMT 2013
I added a new macro to replace the use of TREE_TYPE to get
constraints. It's called TEMPLATE_PARMS_CONSTRAINTS. Patch attached:
2013-09-10 Andrew Sutton <andrew.n.sutton@gmail.com>
* gcc/cp/cp-tree.h (TEMPLATE_PARMS_CONSTRAINTS): New.
* gcc/cp/parser.c (cp_parser_template_declaration_after_export),
(cp_parser_type_parameter): Use TEMPLATE_PARMS_CONSTRAINTS.
* gcc/cp/semantics.c (fixup_template_scope): Use
TEMPLATE_PARMS_CONSTRAINTS.
Andrew Sutton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template-parms.patch
Type: application/octet-stream
Size: 2189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130910/6cd6dfbf/attachment.obj>
More information about the Gcc-patches
mailing list