logoalt Hacker News

weinzierlyesterday at 6:42 AM3 repliesview on HN

A fun one that'd fit list be sequence point violations like

    i = i++

Replies

radiospielyesterday at 6:54 AM

Fun, sure, but also GCC and Clang will both warn with -Wall (-Wsequence-point / -Wunsequenced).

account42yesterday at 9:18 AM

This would also be a code smell even if it was well defined.

show 1 reply
leni536yesterday at 8:59 AM

Only in C, that one is defined in C++.

edit: I'm not sure it's even undefined in C.