re PR c++/72868 (Constexpr expressions mistreat case ranges)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Aug 2016 15:59:53 +0000 (17:59 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Aug 2016 15:59:53 +0000 (17:59 +0200)
commit385ed708b272bb4b53aeda3081960f63ac56d7b0
tree027726bc499da9489020e6e7087cd82393284aff
parentdf7ec09f1209a33b35af3b798e6ff6ead5de8570
re PR c++/72868 (Constexpr expressions mistreat case ranges)

PR c++/72868
* constexpr.c (label_matches): Handle case range expressions.

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

From-SVN: r239379
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-switch4.C [new file with mode: 0644]