// PR c++/117530 // { dg-do compile { target c++20 } } template struct A; template using B = decltype([]() -> A::X { return 0; }); template struct A { typedef int X; typedef B U; }; B b;