[Bug c++/72868] Constexpr expressions mistreat case ranges

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 11 16:04:00 GMT 2016


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


More information about the Gcc-bugs mailing list