// PR c++/104294 // { dg-do compile { target c++17 } } template struct B; template struct B { template struct C { C(T); }; C(decltype(nullptr)) -> C; }; using ty1 = decltype(B::C{0}); using ty1 = B::C; using ty2 = decltype(B::C{nullptr}); using ty2 = B::C;