https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77844 --- Comment #4 from graeser at mi dot fu-berlin.de --- I'm sorry a typo slipped into the report. You need '-O3 -g' to trigger the error. '-O3' or '-g' alone both work nicely.