// { dg-do compile } // Copyright (C) 2002 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 24 Dec 2002 // PR 8702. Failure to match templates. template struct C1{}; template struct C2 { template operator C1(); template operator C2(); }; template template C2::operator C1() { return C1(); } struct A { operator int (); // { dg-error "operator" "" } operator float (); // { dg-error "operator" "" } operator float () const; // { dg-error "operator" "" } template operator T * (); // { dg-error "candidates" "" } }; A::operator short () { // { dg-error "prototype for" "" } return 0; }