https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108495
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 57476 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57476&action=edit Current patch The error message needs some tweaking but this is basically the patch. Will also add a few testcases too.