// { dg-do compile } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 22 Jul 2003 // PR 9447. Using decls in template classes. template struct Foo { int i; }; struct Baz { int i; }; template struct Bar : public Foo, Baz { using Foo::i; // { dg-message "previous declaration" } using Baz::i; // { dg-error "redeclaration" } int foo () { return i; } }; void foo (Bar &bar) { bar.foo(); }