https://gcc.gnu.org/g:2f34c1073c148d310678e20ccd7ca8f31a661d5b
commit r16-7387-g2f34c1073c148d310678e20ccd7ca8f31a661d5b Author: Marek Polacek <[email protected]> Date: Sat Feb 7 17:28:28 2026 -0500 c++/reflection: add fixed test [PR123616] This was fixed by r16-7330-g507ea25cf2e18b. PR c++/123616 gcc/testsuite/ChangeLog: * g++.dg/reflect/type_of3.C: New test. Diff: --- gcc/testsuite/g++.dg/reflect/type_of3.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gcc/testsuite/g++.dg/reflect/type_of3.C b/gcc/testsuite/g++.dg/reflect/type_of3.C new file mode 100644 index 000000000000..ba28c4f59808 --- /dev/null +++ b/gcc/testsuite/g++.dg/reflect/type_of3.C @@ -0,0 +1,13 @@ +// PR c++/123616 +// { dg-do compile { target c++26 } } +// { dg-additional-options "-freflection" } + +#include <meta> +using namespace std::meta; + +struct S { + auto g() { return 0; } +}; +int h() { return 0; } + +static_assert(type_of(^^S::g) == type_of(^^h));
