https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67764
--- Comment #4 from Marcin Ĺšlusarz <marcin.slusarz at intel dot com> --- The issue is similar. However what I described in this bug can be considered a regression, because gcc 4.9 behaves correctly. Bug 40752 is 6 years old.