[Bug c++/88092] class nontype template deduction failed when providing type to class

hanicka at hanicka dot net gcc-bugzilla@gcc.gnu.org
Wed Dec 5 09:13:00 GMT 2018


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;
}


More information about the Gcc-bugs mailing list