blob: 772834701c191cf4c33de839ffdf0f7284df5a1d [file] [log] [blame]
// PR c++/124229
// { dg-do compile { target c++26 } }
template<typename T>
void foo () { }
int main()
{
template for (constexpr auto val : { 42 })
{
using U = decltype(val);
foo<U>();
}
}