PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / operator14.C
blob6267dbb140a4d2723bb1cbd982471c866e291bfd
1 // DR 2007
2 // We shouldn't instantiate A<void> to lookup operator=, since operator=
3 // must be a non-static member function.
5 template<typename T> struct A { typename T::error e; };
6 template<typename T> struct B { };
7 B<A<void> > b1, &b2 = (b1 = b1);