|
|
Subscribe / Log in / New account

Ignoring undefined behaviour

Ignoring undefined behaviour

Posted Oct 31, 2024 18:02 UTC (Thu) by NYKevin (subscriber, #129325)
In reply to: Ignoring undefined behaviour by farnz
Parent article: realloc() and the oversize importance of zero-size objects

OK, fine, let's analyze them as two groups:

1. The GCC/Clang people have publicly stated, in many different fora, for many years, that they will interpret UB as license to do whatever they want. GCC and Clang are also the two most popular compilers in practical use.
2. The committee ignores (1) and continues to designate things as UB which probably should not be treated in this manner, and then insists that they are not at fault when the compiler writers do exactly what they publicly said they were going to do.

That's hardly better.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds