https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128493
Bug ID: 128493
Summary: internal compiler error: tree check: expected
record_type or union_type or qual_union_type, have
integer_type in has_definition, 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 M;
typedef __attribute__((aligned, may_alias)) unsigned long ma_ul;
ma_ul v;
```
Resulted in this output:
```
<source>:1:8: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have integer_type in has_definition, at
cp/module.cc:13060
```
Trunk reproducer (`-std=c++20 -fmodules-ts`): https://godbolt.org/z/qdvredcrT