News for hackers. Stuff that matters.
Re:The Sad Truth About C++ Copy Elision by gumby on Saturday April 03, 2021 @03:09PM (#26683793)
Both of your examples hold for C, and for the same reasons. For example trying to take the address of `errno` is UB in C as implementations are free to implement it as a macro (and almost all do).
Re:The Sad Truth About C++ Copy Elision by wffurr on Saturday April 03, 2021 @06:35PM (#26685352)
Good to know, not that I expected C to be any better.