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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <[email protected]>:

https://gcc.gnu.org/g:82656ffb6f1ed459604d296ca767d8c1f8a743a1

commit r16-8067-g82656ffb6f1ed459604d296ca767d8c1f8a743a1
Author: Nathaniel Shead <[email protected]>
Date:   Mon Feb 23 02:20:38 2026 +1100

    c++/reflection: Support members_of and imported namespace-scope names
[PR124200]

    namespace_members_of needs to iterate over all VECTOR_BINDINGs
    for the given namespace, and handle deduplication.

            PR c++/124200

    gcc/cp/ChangeLog:

            * name-lookup.h (walk_namespace_bindings): Declare.
            * name-lookup.cc (walk_namespace_bindings): New function.
            * reflect.cc (namespace_members_of): Use it.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/reflect-2_a.H: New test.
            * g++.dg/modules/reflect-2_b.C: New test.
            * g++.dg/modules/reflect-2_c.C: New test.
            * g++.dg/modules/reflect-3_a.H: New test.
            * g++.dg/modules/reflect-3_b.C: New test.
            * g++.dg/modules/reflect-3_c.C: New test.

    Signed-off-by: Nathaniel Shead <[email protected]>
    Co-authored-by: Thomas Berger <[email protected]>
    Reviewed-by: Jason Merrill <[email protected]>
    Reviewed-by: Marek Polacek <[email protected]>
  • [Bug c++/124200] [modules][refl... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to