https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80391
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- To clarify: I've downloaded his small testcase (which you should have attached here). And all maintained gcc versions compile it fine. So the bug is fixed already for gcc-5 and higher.