This is the mail archive of the gcc@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]

Re: Undefined behavior due to 6.5.16.1p3


On 11 March 2015 at 16:11, Jakub Jelinek wrote:
> There is some PR about it in our bugzilla, and the conclusion is that
> it is both invalid (in C only one union member can be active at any time,
> we as extension allow type punning through unions etc.)
> and we really don't want to support it.

I thought type punning was valid since C99 (but not C89 or any version of C++).


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