https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- At the point the "Local declaration from a different function" error is issued in verify_expr(t) where t is PARAM_DECL for the argument to A's ctor, context is: <function_decl 0x7fffefc31000 __ct ...> while cfun->decl is <function_decl 0x7fffefc31200 __ct_base ...>.