Home | History | Annotate | Download | only in over.ics.user
      1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
      2 
      3 namespace PR6285 {
      4   template<typename T> struct identity
      5   { typedef T type; };
      6 
      7   struct D {
      8     template<typename T = short>
      9     operator typename identity<T>::type(); // expected-note{{candidate}}
     10   };
     11 
     12   int f() { return D(); } // expected-error{{no viable conversion}}
     13 }
     14 
     15