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

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 3 02:53:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88092

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another minimal testcase:

template<typename T>
struct S { };

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