]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/46382 (constexpr vs. static_assert in constexpr ctors)
authorJason Merrill <jason@redhat.com>
Tue, 9 Nov 2010 03:54:24 +0000 (22:54 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Nov 2010 03:54:24 +0000 (22:54 -0500)
commit9b7d05093738e51274c3b473ede23799db93bf98
tree98fb4d94e9d9d03d85c305dab606ebd564af92c9
parentedb7c512888ad65f3804585a43448ada0d10f690
re PR c++/46382 (constexpr vs. static_assert in constexpr ctors)

PR c++/46382
* semantics.c (check_constexpr_ctor_body): New fn.
* parser.c (cp_parser_ctor_initializer_opt_and_function_body): Call it.
* cp-tree.h: Declare it.

From-SVN: r166471
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-sassert.C [new file with mode: 0644]