1 // PR c++/80891 part 1 2 // std::endl is found via two paths and most_specialized_instantiation 3 // gets confused. 4 5 namespace std { 6 struct A { 7 void operator<<(A(A)); 8 }; 9 template <typename _CharT, typename _Traits> _CharT endl(_Traits); 10 A a; 11 } 12 13 using std::endl; 14 chi_squared_sample_sized()15void chi_squared_sample_sized() 16 { 17 using namespace std; 18 a << endl; 19 } 20