blob: ce2ca2d488a035a7c55e8865f53f239715c79791 [file] [edit]
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
// expected-no-diagnostics
template <int> struct bad {
template <class T, auto =
[] {
for (int i = 0; i < 100; ++i) {
struct LoopHelper {
static constexpr void process() {}
};
}
}>
static void f(T) {}
};
int main() { bad<0>::f(0); }