[Bug middle-end/36369] [4.3/4.4 Regression] Type punning warning with may_alias attribute depends on unrelated class definition
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 29 13:38:00 GMT 2008
------- Comment #1 from jakub at gcc dot gnu dot org 2008-05-29 13:38 -------
Given that get_alias_set uses TYPE_MAIN_VARIANT on the type before
c_common_get_alias_set gets a chance to return 0 for types with may_alias
attribute, it is obvious why this depends on other code using the same base
type.
I wonder why doesn't handle_may_alias_attribute set TYPE_ALIAS_SET (type) = 0;
right away, but still that wouldn't help.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36369
More information about the Gcc-bugs
mailing list