PR c++/82461 - constexpr list-initialized member
authorJason Merrill <jason@redhat.com>
Thu, 18 Jan 2018 20:02:06 +0000 (15:02 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 18 Jan 2018 20:02:06 +0000 (15:02 -0500)
commitd3a9902e523f81f07e765b2553dde7019aa098fb
treed3b9be5a9d6abd0e5eccb746e15aa9ff96fabd0f
parentdac867c90a93d411f71a2ce960f61c0f637235ad
PR c++/82461 - constexpr list-initialized member

* constexpr.c (potential_constant_expression_1): Check
TARGET_EXPR_DIRECT_INIT_P.

From-SVN: r256860
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-list2.C [new file with mode: 0644]