/cp
commit4e839e5647ab97b9133402834033ee4a77630a54
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Mar 2014 09:51:52 +0000 (13 09:51 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Mar 2014 09:51:52 +0000 (13 09:51 +0000)
tree41f000d0a75618cc89cd877f4ffbf92d592a5c2e
parent472d4060bbe4b59ff8604f7e99678a671a40dd30
/cp
2014-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60254
* semantics.c (finish_static_assert): Call cxx_constant_value only
if require_potential_rvalue_constant_expression returns true.

/testsuite
2014-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60254
* g++.dg/cpp0x/static_assert10.C: New.
* g++.dg/cpp0x/static_assert11.C: Likewise.
* g++.dg/cpp0x/static_assert3.C: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208538 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/static_assert10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/static_assert11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/static_assert3.C