r216049 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...

paolo@gcc.gnu.org paolo@gcc.gnu.org
Thu Oct 9 19:22:00 GMT 2014


Author: paolo
Date: Thu Oct  9 19:22:53 2014
New Revision: 216049

URL: https://gcc.gnu.org/viewcvs?rev=216049&root=gcc&view=rev
Log:
/cp
2014-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* semantics.c (check_constexpr_ctor_body_1): New.
	(check_constexpr_ctor_body): Use it; add bool parameter.
	(build_data_member_initialization): Handle BIND_EXPR and
	USING_STMT in the main conditional.
	(build_constexpr_constructor_member_initializers): Do not
	handle BIND_EXPR here.
	(constexpr_fn_retval): Handle BIND_EXPR in the switch.
	(massage_constexpr_body): Don't do it here.
	* parser.c (cp_parser_ctor_initializer_opt_and_function_body):
	Adjust check_constexpr_ctor_body call.
	(cp_parser_compound_statement): Do not pedwarn for compound-statement
	in constexpr function in C++14 mode.
	* cp-tree.h (check_constexpr_ctor_body): Update declaration.

/testsuite
2014-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/cpp0x/constexpr-using3.C: New.
	* g++.dg/cpp1y/constexpr-local-compound1.C: Likewise.
	* g++.dg/cpp1y/constexpr-type-def-compound1.C: Likewise.
	* g++.dg/cpp1y/constexpr-local1.C: Extend.
	* g++.dg/cpp0x/constexpr-compound.C: Specify expected error.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-using3.C
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-local-compound1.C
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-type-def-compound1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-compound.C
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-local1.C



More information about the Gcc-cvs mailing list