Debian Codegraph @

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

raw
1 // PR c++/103057
2 // { dg-do compile { target c++11 } }
3
4 template <class T> struct A { };
5 template <class T> struct B { using type = A<T>; };
6 template <class T> struct C {
7 using type = typename T::foo; // { dg-error "int" }
8 };
9 template <class T> using L = B<void>;
10
11 template <class T>
12 typename L<typename C<T>::type>::type
13 f(T) { };
14
15 int main()
16 {
17 f(42); // { dg-error "no match" }
18 }