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

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

https://gcc.gnu.org/g:4bcbeb8d5d4d23d2e575cd947c59c410d62ca457

commit r17-4509-g4bcbeb8d5d4d23d2e575cd947c59c410d62ca457
Author: Jakub Jelinek <[email protected]>
Date:   Mon Sep 21 09:16:21 2026 +0200

    c++: Fix reflection source_location_of on member function reflections
[PR127493]

    We don't call maybe_get_first_fn in eval_source_location_of and so don't
    get to the DECL_SOURCE_LOCATION we otherwise could/should.

    The following patch fixes it.

    2026-09-21  Jakub Jelinek  <[email protected]>

            PR c++/127493
            * reflect.cc (eval_source_location_of): Call maybe_get_first_fn.

            * g++.dg/reflect/source_location_of1.C (struct G, struct H): New
            types.  Add asserts for source_location_of of member function and
            member function template.
            * g++.dg/reflect/source_location_of2.C: Expect implicitEqLine
rather
            than 0 for line of ^^ImplicitEq::operator==.

    Reviewed-by: Jason Merrill <[email protected]>

Reply via email to