Re:The initial proposal for a C++ Ecosystem International St...
by tsimionescu on Wednesday October 19, 2022 @08:19AM
(#33261023)
The Linux kernel uses GCC (for a long time, it used a specific version of GCC), and it uses some flags to disable certain notions of UB, some of which were particularly added for Linux. Do these work for C++ code? Possibly, but who knows.
[ Parent
| on HN ]
Re:The initial proposal for a C++ Ecosystem International St...
by fluoridation on Wednesday October 19, 2022 @10:49AM
(#33263048)
So they had the GCC people define the behavior based on a flag. Since undefined behavior means that all behaviors are permissible, including defined behavior, I see no reason why any C++ compiler couldn't do this.