A highly invalid "optimization" by clang. That compiler needs -fno-builtin to be usable.
-
-
This all what they put under "quality of the implementation", so this is not mandatory.
-
We should always keep in mind that a "valid" but "low-quality" impl. is free to only compile one fixed program.
-
That doesn't catch it, I think. Oldish segmented platforms could have 16 bit size_t and larger dynamic allocs
-
No, if your seg'd arch has 16-bit size_t, you can't have individual allocations >64k, just larger total mem.
-
I don't see where this would be required. size_t is defined via sizeof.
-
Specification of lib functions. E.g. strlen is specified to return length, not "length, converted to size_t".
-
If you want to just say it's UB or unspecified result if it doesn't fit, that's even more awful and unusable.
-
Sure it's UB. In the same way as printf of >INT_MAX chars.
- 7 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.