3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 16 Jul 2003 <nathan@codesourcery.com>
6 // A non-dependent field_decl can bind at parse time.
10 int j; // we never see this one.
11 int k; // { dg-message "Foo" "" }
18 int k; // { dg-message "candidates" "" }
23 struct Bar : public Foo<T>, Baz {
25 int baz () { return j; } // binds to Baz::j
26 int foo () { return this->k; } // { dg-error "request for member" "" }
34 bar.foo (); // { dg-message "required" "" }