OSDN Git Service

2009-10-05 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / using7.C
1 template <typename T, bool=T::X> struct A
2 {
3   int i;
4 };
5
6 template <typename T> struct B : A<T>
7 { // { dg-error "incomplete" }
8   using A<T>::i; // { dg-error "incomplete" "incomplete" } 
9                  // { dg-error "using" "using" { target *-*-* } 8 }
10 };
11
12 B<void> b; // { dg-message "instantiated" }