PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / cast3.C
blobb343ee427b32e3740504c79e9563158541a429fb
1 // PR c++/56438
3 struct A { };
4 A& operator<<(A&, const char*);
6 struct B {
7   int size();
8 };
10 struct C { };
12 template <class S, class T>
13 S bar(const S& s, const T& t) {
14   return s;
17 template<class S, class T>
18 void foo() {
19   A a;
20   B b;
21   a << bar(b.size(), C());      // { dg-error "no match" }