Comment

Comment by acqq

> Punning through a union is undefined in C++11

And that is effectively a bug in that standard, says Linus, and I agree with him.

https://lkml.org/lkml/2018/6/5/769

"I've said this before, and I'll say it again: a standards paper is just so much toilet paper when it conflicts with reality."

Sadly, the compiler maintainers at some points of time managed to push the real "breaking" changes through (for other UB cases). It seems that the "language lawyerism" is "easier" than the expected approach of the responsible engineers.

parent acqq 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton