On Mon 1/12/2026 9:36 AM, Michael S wrote:
But I was interested in the "opinion" of C Standard rather than of gcc
compiler.
Is it full nasal UB or merely "implementation-defined behavior"?
It is full nasal UB per the standard. And, of course, it is as "implementation-defined" as any other UB in a sense that the standard
permits implementations to _extend_ the language in any way they
please, as long as they don't forget to issue diagnostics when
diagnostics are required (by the standard).
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,104 |
| Nodes: | 10 (1 / 9) |
| Uptime: | 492386:38:15 |
| Calls: | 14,150 |
| Calls today: | 1 |
| Files: | 186,281 |
| D/L today: |
2,214 files (841M bytes) |
| Messages: | 2,501,137 |