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

            Bug ID: 123965
           Summary: [reflection] ICE when querying reflection generated
                    base class
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: debashish47 at gmail dot com
  Target Milestone: ---

Created attachment 63581
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63581&action=edit
compiler diagnostics

```
#include <meta>

struct foo {
  struct type;
  consteval {
    define_aggregate(^^type, {
                                 data_member_spec(^^int, {
                                                             .name =
"dummy"})});
  }
};

struct bar : foo::type {};

int main() {
  constexpr auto x = bases_of(^^bar,
std::meta::access_context::current()).size();
  return x;
}
```

This crashes the compiler! (https://godbolt.org/z/obvj9rqse)
Compiler diagnostics attached.

Reply via email to