https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123616
Bug ID: 123616
Summary: [reflection] type_of and auto return type not working
properly
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
```
#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));
```
should likely pass, but it doesn't.