Y
Hacker News
new
|
ask
|
show
|
jobs
by
startling
3506 days ago
Undefined behavior is not illegal. The compiler can do
anything
with undefined behavior, including exactly what the author expected.
1 comments
scott_s
3505 days ago
It is illegal, for any reasonable definition of illegal. See my comment from earlier in the year:
https://news.ycombinator.com/item?id=10840497
link
startling
3505 days ago
"Illegal" seems stronger to me than "not strictly conforming", I guess (and so does "well-formed", for that matter). But I think we basically agree.
link