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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <[email protected]>:

https://gcc.gnu.org/g:23a80bd08ffaaf2260a499d828d63d001e1d634c

commit r16-7648-g23a80bd08ffaaf2260a499d828d63d001e1d634c
Author: Marek Polacek <[email protected]>
Date:   Thu Feb 19 14:47:26 2026 -0500

    c++/reflection: members_of and friend class [PR123641]

    The assert in this test currently doesn't pass because .size () is 3, due
to
    {A, B, B} found in N, but it should only be {A, B}, because we should
    skip the hidden "void N::B()".

            PR c++/123641

    gcc/cp/ChangeLog:

            * name-lookup.cc: Move STAT_* and MAYBE_STAT_* macros from here
to...
            * name-lookup.h: ...here.
            * reflect.cc (namespace_members_of): Use them.  Skip
STAT_TYPE_HIDDEN_P.

    gcc/testsuite/ChangeLog:

            * g++.dg/reflect/members_of8.C: New test.

    Reviewed-by: Jason Merrill <[email protected]>
  • [Bug c++/123641] [reflection] m... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to