// PR c++/123738 // { dg-do compile { target c++20 } } struct OStringLiteral { int str = 0; }; template struct OStringHolder { static constexpr auto & literal = L; }; struct OString { template constexpr OString(OStringHolder const &): p(&OStringHolder::literal.str) {} int const * p; }; constexpr OString s = OStringHolder{};