PR c++/81073 - constexpr and static var in statement-expression.
* typeck2.c (store_init_value): Always call require_potential_constant_expression. * pt.c (convert_nontype_argument): Likewise. * constexpr.c (potential_constant_expression_1): Adjust message. Use decl_maybe_constant_var_p instead of decl_constant_var_p. * decl2.c (decl_maybe_constant_var_p): Consider initializer. From-SVN: r249382
Showing
gcc/testsuite/g++.dg/ext/stmtexpr19.C
0 → 100644
Please
register
or
sign in
to comment