[Bug c++/91759] [8/9/10 Regression] g++ accepts ill-formed deduction guides in wrong scope since r7-6608-ga56c0ac08242269b

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 16 15:38:11 GMT 2020


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.


More information about the Gcc-bugs mailing list