summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alias-decl-61.C
blob: 670d91a158ce6e65e3371427fa495d6292df32b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/83714
// { dg-do compile { target c++11 } }

class a {
  typedef int b;
  operator b();
};
struct c {
  using d = a;
};
using e = c;

template <class T>
e f(T) {
  return e::d {};		// { dg-error "could not convert" }
}