This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63265] [4.9 Regression] Constexpr variables can trigger spurious compiler warnings
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Nov 2014 22:24:15 +0000
- Subject: [Bug c++/63265] [4.9 Regression] Constexpr variables can trigger spurious compiler warnings
- Auto-submitted: auto-generated
- References: <bug-63265-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63265
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Nov 11 22:23:44 2014
New Revision: 217380
URL: https://gcc.gnu.org/viewcvs?rev=217380&root=gcc&view=rev
Log:
/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.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-63265.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/pt.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog