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

            Bug ID: 128494
           Summary: internal compiler error: tree check: expected tree
                    that contains 'decl minimal' structure, have
                    'record_type' in decl_value, at cp/module.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```cpp
export module bob;
struct B { };
template <class T> struct C { friend B::B (); };
```

Resulted in this output:
```
<source>:1:8: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'record_type' in decl_value, at
cp/module.cc:8657
```

Trunk reproducer (`-std=c++20 -fmodules-ts`): https://godbolt.org/z/Ts11PfM6P

Reply via email to