https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107437
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 55466 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55466&action=edit failed experiment I wondered if keeping function-local typedefs would be a simple fix, but a number of modules tests regress with this patch. I guess that's because of problems with entries in the specialization hash tables referring to function-local typedefs that we can't then reconnect when loading the module. Really such entries (if we do add them) shouldn't persist after we're done compiling the function.