https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118924
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60528 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60528&action=edit testcase which can be compiled with both the C and C++ front-end This testcase fails when compiled with the C++ front-end but works with the C front-end. I am not sure why though. Because SRA does the same thing with the IR coming out from both front-ends.