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++/72868] Constexpr expressions mistreat case ranges


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72868

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Aug 11 16:03:32 2016
New Revision: 239380

URL: https://gcc.gnu.org/viewcvs?rev=239380&root=gcc&view=rev
Log:
        PR c++/72868
        * constexpr.c (label_matches): Handle case range expressions.

        * g++.dg/cpp1y/constexpr-switch4.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-switch4.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/constexpr.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

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