| ▲ | ranger_danger 17 hours ago | |||||||
Why would the C code no longer compile if it conforms to the spec? | ||||||||
| ▲ | seabrookmx 15 hours ago | parent | next [-] | |||||||
"The spec" is loose in places and is full of undefined behavior which can change from compiler to compiler. Very low level code tends to hit these types of issues much more than application code would. But these types of issues are even common in large userspace codebases. | ||||||||
| ||||||||
| ▲ | wasting_time 15 hours ago | parent | prev | next [-] | |||||||
You sort of answered your own question. Another reason is compiling with -Werror and hitting new warnings. Also, the version of the spec changes with almost every major release. | ||||||||
| ▲ | stonogo 15 hours ago | parent | prev [-] | |||||||
There is more than one C specification, and with each new release of GCC several things that used to emit warnings are newly treated as errors. | ||||||||
| ||||||||