12 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64 -fsyntax-only -std=c++20 -ffp-exception-behavior=strict -verify %s2// expected-no-diagnostics3 4template <class T> struct S {5 template <class U> using type1 = decltype([] { return U{}; });6};7 8void foo() {9 using T1 = S<int>::type1<int>;10 int x = T1()();11}12