https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124229
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And this ICEs in a different spot but I think will be fixed by the same patch:
```
#include <meta>
enum class E
{
X [[=1]]
};
template<typename T>
void foo ()
{
}
int main()
{
template for (constexpr auto val : define_static_array (enumerators_of
(^^E)))
{
constexpr auto a = annotations_of(val)[0];
using U = [:type_of(a):];
foo<U>();
}
}
```
