Comment by weinzierl 5 months ago A fun one that'd fit list be sequence point violations like i = i++ 4 comments weinzierl Reply radiospiel 5 months ago Fun, sure, but also GCC and Clang will both warn with -Wall (-Wsequence-point / -Wunsequenced). account42 5 months ago This would also be a code smell even if it was well defined. marcosdumay 5 months ago Yes, it should be an explicit error. Not undefined. leni536 5 months ago Only in C, that one is defined in C++.edit: I'm not sure it's even undefined in C.
radiospiel 5 months ago Fun, sure, but also GCC and Clang will both warn with -Wall (-Wsequence-point / -Wunsequenced).
account42 5 months ago This would also be a code smell even if it was well defined. marcosdumay 5 months ago Yes, it should be an explicit error. Not undefined.
leni536 5 months ago Only in C, that one is defined in C++.edit: I'm not sure it's even undefined in C.
Fun, sure, but also GCC and Clang will both warn with -Wall (-Wsequence-point / -Wunsequenced).
This would also be a code smell even if it was well defined.
Yes, it should be an explicit error. Not undefined.
Only in C, that one is defined in C++.
edit: I'm not sure it's even undefined in C.