This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r223061 - in /branches/c++-concepts: ChangeLog....


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]