diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-10-09 19:22:53 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-10-09 19:22:53 +0000 |
commit | 3369b9193606b86677e65bc96699939fb6a8d13e (patch) | |
tree | 4553766deb632f48b011e507c8e87b13c5f4fcbf /gcc/fortran/trans-openmp.c | |
parent | 5f60643158669361212ef79bfec16e8c73f4c138 (diff) | |
download | gcc-3369b9193606b86677e65bc96699939fb6a8d13e.zip gcc-3369b9193606b86677e65bc96699939fb6a8d13e.tar.gz gcc-3369b9193606b86677e65bc96699939fb6a8d13e.tar.bz2 |
semantics.c (check_constexpr_ctor_body_1): New.
/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.
From-SVN: r216049
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions