re PR c++/63265 (Constexpr variables can trigger spurious compiler warnings)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 11 Nov 2014 17:34:12 +0000 (17:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 Nov 2014 17:34:12 +0000 (17:34 +0000)
commit50457b9e2151e9cc3d11da733bd885cf148a29a3
treecda7a230e439ff04b7348e7945373732943c8a19
parent3f3f5af032269366dcf58626a6c3037f37de138d
re PR c++/63265 (Constexpr variables can trigger spurious compiler warnings)

/cp
2014-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63265
* pt.c (tsubst_copy_and_build, case COND_EXPR): Maybe fold to
constant the condition.

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

PR c++/63265
* g++.dg/cpp0x/constexpr-63265.C: New.

From-SVN: r217361
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-63265.C [new file with mode: 0644]