https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69410

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:fc03893d2fead133ed336511ac00d75c10c5a88d

commit r10-11304-gfc03893d2fead133ed336511ac00d75c10c5a88d
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Mar 17 09:43:48 2023 -0400

    c++: namespace-scoped friend in local class [PR69410]

    do_friend was only considering class-qualified identifiers for the
    qualified-id case, but we also need to skip local scope when there's an
    explicit namespace scope.

            PR c++/69410

    gcc/cp/ChangeLog:

            * friend.c (do_friend): Handle namespace as scope argument.
            * decl.c (grokdeclarator): Pass down in_namespace.

    gcc/testsuite/ChangeLog:

            * g++.dg/lookup/friend24.C: New test.
  • [Bug c++/69410] [10/11 Regressi... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to