This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249383 - in /branches/gcc-7-branch/gcc: cp/Cha...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 19 Jun 2017 18:20:48 -0000
- Subject: r249383 - in /branches/gcc-7-branch/gcc: cp/Cha...
Author: jason
Date: Mon Jun 19 18:20:48 2017
New Revision: 249383
URL: https://gcc.gnu.org/viewcvs?rev=249383&root=gcc&view=rev
Log:
PR c++/81073 - constexpr and static var in statement-expression.
* constexpr.c (cxx_eval_constant_expression) [DECL_EXPR]: Check
potential_constant_expression.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/stmtexpr19.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/constexpr.c