]> git.ipfire.org Git - thirdparty/gcc.git/commit
/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Aug 2014 17:03:34 +0000 (17:03 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Aug 2014 17:03:34 +0000 (17:03 +0000)
commitc1ef64de3fb004467ef1fc0146abce0a08306afe
tree01bedd2000e53feabec7995c08cdbca348ba5c27
parent25b7d298bc19f447c84718114edc1b080c285aba
/cp
2014-08-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52892
* semantics.c (cxx_eval_call_expression): Use STRIP_NOPS on the
result of cxx_eval_constant_expression.

/testsuite
2014-08-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52892
* g++.dg/cpp0x/constexpr-52892-1.C: New.
* g++.dg/cpp0x/constexpr-52892-2.C: Likewise.
* g++.dg/cpp0x/constexpr-52282-1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214579 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-52282-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-52892-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-52892-2.C [new file with mode: 0644]