https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88092
--- Comment #5 from Hana Dusíková <hanicka at hanicka dot net> --- So minimal example is: template<typename T> struct S { constexpr S(...) { } }; template <typename T> S(T) -> S<T>; template <S s> struct foo { }; template <S s> void fn () { auto t = s; foo<t> f1; foo<s> f2; }