https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #13 from Peter Damianov <peter0x44 at disroot dot org> --- Oh no... Now I can't reproduce it either! And I don't remember the version of cppcheck I reduced it out of either (I probably should have said so...) I remember I did manage to reproduce it before when building gcc itself using lto + -Os though. So that might be place to start ?
