This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15330] inconsistent slicing on cast of int to enum
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 18:57:47 -0000
- Subject: [Bug c++/15330] inconsistent slicing on cast of int to enum
- References: <20040506183922.15330.sebor@roguewave.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2004-05-06 18:57 -------
IMHO we should only attempt to do "the right thing" on undefined behavior
if it is very useful and widely used and documented (like reading a different
than the last written to entry from a union). In this case, it really doesn't
seem useful enough to me. It might even inhibit optimizations. So I vote
for closing this as invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15330