https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65307
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Why do you think it is a duplicate? PR65216 was a 5 Regression, something that worked in 4.9; this one is an issue with 4.9 and not 5. PR65216 was also about -O3 only, this one fails even with -O2. PR65216 started after this one got fixed.