https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102939
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So if you place the variable inside a function, then both the C and C++ front-end take a long time to compile .... Maybe we should cache variably_modified_type_p somewhere.