https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128534
Bug ID: 128534
Summary: internal compiler error: in get_string, at
spellcheck-tree.h
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
namespace N { }
template<decltype(^^int) R>
void g ()
{
double d = [:R:]::template pi<double>;
}
void h () { g<^^N>(); }
```
Resulted in this output:
```
<source>:6:30: internal compiler error: in get_string, at spellcheck-tree.h:46
```
Trunk reproducer (`-std=c++26 -freflection`): https://godbolt.org/z/xesK5cbTY