https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85802
--- Comment #2 from Milian Wolff <mail at milianw dot de> --- Oh, awesome - it actually detected a bug :) It should have been "char buf", not "char* buf". Thanks for opening my eyes here, I stared at this for a while and couldn't spot the issue. The fact that it wasn't reproducible with C made me believe it was a false-positive. Thanks again