Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
weinzierl
· 6mo ago · 0 comments
A fun one that'd fit list be sequence point violations like
i = i++
Comments
[–]
radiospiel
6mo ago
Fun, sure, but also GCC and Clang will both warn with -Wall (-Wsequence-point / -Wunsequenced).
[–]
account42
6mo ago
This would also be a code smell even if it was well defined.
[–]
marcosdumay
6mo ago
Yes, it should be an explicit error. Not undefined.
[–]
leni536
6mo ago
Only in C, that one is defined in C++.
edit: I'm not sure it's even undefined in C.