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 c++/15330] inconsistent slicing on cast of int to enum


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


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