re PR c++/83116 (Statement with no effect causes wrong code of static object constexp...
authorMarek Polacek <polacek@redhat.com>
Mon, 18 Dec 2017 21:25:16 +0000 (21:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 18 Dec 2017 21:25:16 +0000 (21:25 +0000)
commit4a58d2fe83ca6325f6ba4384eb9be6008ad65f3b
treeb2bee25f88cb8e33d0cfc96ef0db01f83694700f
parentaa8ec7fb260489a0af7578c727c4b41ebc1ae593
re PR c++/83116 (Statement with no effect causes wrong code of static object constexpr method)

PR c++/83116
* constexpr.c (cxx_eval_call_expression): Only look into
constexpr_call_table if ctx->strict.

* g++.dg/cpp1y/constexpr-83116.C: New test.

From-SVN: r255788
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-83116.C [new file with mode: 0644]