https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91759
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The commit removed the "must be declared in the same scope as" diagnostics altogether and expects set_decl_namespace not_found: to diagnose it instead. But on this testcase, in_namespace is false in the caller and so set_decl_namespace is never called from grokfndecl.