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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/c++-concepts@223061 138bc75d-0d04-0410-961f-82ee72b054a4