Debian Codegraph @

clang/test/SemaTemplate/GH161657.cpp

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