Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-uneval27.C

raw
1 // PR c++/117530
2 // { dg-do compile { target c++20 } }
3
4 template <class> struct A;
5 template <class T> using B = decltype([]() -> A<T>::X { return 0; });
6 template <class T> struct A {
7 typedef int X;
8 typedef B<T> U;
9 };
10 B<short> b;