https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128425
Bug ID: 128425
Summary: has_identifier returns true for reflection of array
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eczbek.void at gmail dot com
Target Milestone: ---
https://godbolt.org/z/8j1c4x69j
```
#include <meta>
using T = int[];
static_assert(not has_identifier(std::meta::reflect_constant_array(T{0})));
```
```
<source>:5:15: error: static assertion failed
5 | static_assert(not
has_identifier(std::meta::reflect_constant_array(T{0})));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
it seems to return a mangled name: https://godbolt.org/z/fWPz1G3YG