This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/63265] [4.9 Regression] Constexpr variables can trigger spurious compiler warnings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]