This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72868] Constexpr expressions mistreat case ranges
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Aug 2016 16:04:04 +0000
- Subject: [Bug c++/72868] Constexpr expressions mistreat case ranges
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-72868-4@http.gcc.gnu.org/bugzilla/>
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