r223061 - in /branches/c++-concepts: ChangeLog....
asutton@gcc.gnu.org
asutton@gcc.gnu.org
Tue May 12 12:21:00 GMT 2015
Author: asutton
Date: Tue May 12 12:21:04 2015
New Revision: 223061
URL: https://gcc.gnu.org/viewcvs?rev=223061&root=gcc&view=rev
Log:
2015-05-08 Andrew Sutton <andrew.n.sutton@gmail.com>
PR66091
* gcc/cp/cp-tree.h (get_function_declarator): New.
* gcc/cp/decl.c (get_trailing_requires_clause): Use
get_function_declarator.
* gcc/cp/parser.c (function_declarator_p): Likewise.
(cp_parser_declarator): Stop invoking undefined behavior
and install the requires clause on the found function
declarator.
* gcc/testsuite/g++.dg/concepts/pr66091.C: New.
Added:
branches/c++-concepts/gcc/testsuite/g++.dg/concepts/pr66091.C
Modified:
branches/c++-concepts/ChangeLog.concepts
branches/c++-concepts/gcc/cp/cp-tree.h
branches/c++-concepts/gcc/cp/decl.c
branches/c++-concepts/gcc/cp/parser.c
More information about the Gcc-cvs
mailing list