fork download
  1. template<typename T>
  2. struct B
  3. {
  4. bool operator == (const B& b) { return true; }
  5. };
  6.  
  7. template<typename T>
  8. struct D : B<T>
  9. {
  10. using B<T>::operator ==;
  11. };
  12.  
  13. int main ()
  14. {
  15. D<int> d1, d2;
  16. return d1 == d2;
  17. }
  18.  
Runtime error #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty