https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83692
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Sat Feb 24 13:10:44 2018 New Revision: 257961 URL: https://gcc.gnu.org/viewcvs?rev=257961&root=gcc&view=rev Log: PR c++/83692 * constexpr.c (maybe_constant_init_1): New function. (maybe_constant_init): Make it a wrapper around maybe_constant_init_1. (cxx_constant_init): New function. * cp-tree.h (cxx_constant_init): Declare. * typeck2.c (store_init_value): Call cxx_constant_init instead of cxx_constant_value. Move the maybe_constant_init call under an 'else'. * g++.dg/cpp1z/constexpr-83692.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-83692.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog