https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118515
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I wonder if it should just be undeclaredtypeerror instead so it is obvious what it was. But then again it might not be an undeclared type causing the error.