https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87038 --- Comment #11 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> --- It is also not legal (side effects or not) when compiling as C++, which is one of the reasons for having this warning.