[Bug c/65892] gcc fails to implement N685 aliasing of union members

aph at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 30 16:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892

--- Comment #50 from Andrew Haley <aph at gcc dot gnu.org> ---
(In reply to Andrew Haley from comment #49)
> 
> Perhaps so, yes, but in practice it'd be pretty hard to do that.
> Functions can only be defined in the other scope,

Should be "the outer scope"

> and there's no way
> to undefine a union type.  I guess you could be clever and put all of
> the functions which needed to know about the aliasing at the end of a
> translation unit.


More information about the Gcc-bugs mailing list