This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52283] "error: case label does not reduce to an integer constant" for constant folded cast expr
- From: "chrbr at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 08:25:54 +0000
- Subject: [Bug c/52283] "error: case label does not reduce to an integer constant" for constant folded cast expr
- Auto-submitted: auto-generated
- References: <bug-52283-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52283
--- Comment #24 from chrbr at gcc dot gnu.org 2012-02-27 08:25:54 UTC ---
> I think you need to add a Changelog and submit it to gcc-patches. Both 4.6.3
> and 4.7.0 are about to be released, so you may need to wait until they are (or
> not, I am not following closely the current status)
OK, do you have an entry that comes with your patch (stmt,c and convert.c) ?
The ChangeLog entry that came with the testcase was part of the initial patch:
2010-02-15 Christian Bruel <christian.bruel@st.com>
* gcc.dg/case-const-1.c: Add cond expr label and cast case.
* gcc.dg/case-const-2.c: Likewise.
* gcc.dg/case-const-3.c: Likewise.
I'll submit the whole thing to gcc-patches.
many thanks,