This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/13696] [3.4 Regression] enum not useable as array index?


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]