3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 Jul 2003 <nathan@codesourcery.com>
6 // PR 9447. Using decls in template classes.
10 int i; // { dg-error "Foo" }
15 int i; // { dg-error "Baz" }
19 struct Bar : public Foo<T>, Baz {
23 int foo () { return i; } // { dg-error "request for member" }
26 void foo (Bar<int> &bar)
28 bar.foo(); // { dg-message "instantiated" }