aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/GH161657.cpp
blob: 5ad4dde855898a56b20e6d5b66c06c8558971bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -triple=x86_64 -fsyntax-only -std=c++20 -ffp-exception-behavior=strict -verify %s
// expected-no-diagnostics

template <class T> struct S {
  template <class U> using type1 = decltype([] { return U{}; });
};

void foo() {
  using T1 = S<int>::type1<int>;
  int x = T1()();
}