Debian Codegraph @

clang/test/CXX/over/over.match/over.match.best/over.best.ics/over.ics.user/p3-0x.cpp

raw
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