https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83921
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Wed Jan 24 00:57:18 2018 New Revision: 257009 URL: https://gcc.gnu.org/viewcvs?rev=257009&root=gcc&view=rev Log: /cp 2018-01-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/83921 * decl.c (check_for_uninitialized_const_var): Not static; add bool and tsubst_flags_t parameters; adjust to be used both in constexpr context and not. * constexpr.c (potential_constant_expression_1): Use the above. * cp-tree.h (check_for_uninitialized_const_var): Declare. /testsuite 2018-01-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/83921 * g++.dg/cpp1y/constexpr-83921-1.C: New. * g++.dg/cpp1y/constexpr-83921-2.C: Likewise. * g++.dg/cpp1y/constexpr-83921-3.C: Likewise. * g++.dg/ext/stmtexpr20.C: Likewise. * g++.dg/ext/stmtexpr21.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-83921-1.C trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-83921-2.C trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-83921-3.C trunk/gcc/testsuite/g++.dg/ext/stmtexpr20.C trunk/gcc/testsuite/g++.dg/ext/stmtexpr21.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog