2014-09-01 Andrew Sutton <andrew.n.sutton@gmail.com>
Check requirements on function concept definitions.
* gcc/cp/decl.c (finish_function): Check properties of a function
concept definition.
* gcc/cp/constraint.cc (check_function_concept): New. Check
for deduced return type and multiple statements.
(normalize_misc): Don't normalize multiple statements.
(normalize_stmt_list): Removed.
* gcc/cp/cp-tree.h (check_function_concept): New.
* gcc/testsuite/g++.dg/concepts/fn-concept1.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/c++-concepts@215718 138bc75d-0d04-0410-961f-82ee72b054a4