Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/alias-decl-61.C

raw
1 // PR c++/83714
2 // { dg-do compile { target c++11 } }
3
4 class a {
5 typedef int b;
6 operator b();
7 };
8 struct c {
9 using d = a;
10 };
11 using e = c;
12
13 template <class T>
14 e f(T) {
15 return e::d {}; // { dg-error "could not convert" }
16 }