This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/13696] [3.4 Regression] enum not useable as array index?
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2004 17:24:00 -0000
- Subject: [Bug middle-end/13696] [3.4 Regression] enum not useable as array index?
- References: <20040115104958.13696.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-01-16 17:23 -------
This problem occurs because extract_muldiv_1 calls "convert" to try to convert a
pointer to an enum.
As I've said before, almost *any* use of "convert" by the middle-end is a bug.
The middle-end simply cannot know what kinds of conversions the front-end might
or might not do.
The back-end should explicitly generate NOP_EXPRs or CONVERT_EXPRs if it wants
to do conversions.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13696