re PR c++/47774 ([C++0x] constexpr specifier on ctor not ignored when template instan...
authorJason Merrill <jason@redhat.com>
Thu, 3 Mar 2011 02:49:19 +0000 (21:49 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 Mar 2011 02:49:19 +0000 (21:49 -0500)
commit262a7d6bc0820d7aed46a05b2b8b6ef7824bb08f
treeec4922a31a757f11986c001b1ffa43d50264d890
parent20532210cd1a8e0b3b2d6ec1bcaa8c0e928af5ca
re PR c++/47774 ([C++0x] constexpr specifier on ctor not ignored when template instantiation causes ctor to not satify constexpr requirements)

PR c++/47774
* tree.c (build_vec_init_elt): Split out from...
(build_vec_init_expr): ...here.
(diagnose_non_constexpr_vec_init): New fn.
* semantics.c (potential_constant_expression_1): Use it.
* cp-tree.h: Declare it.

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