3 // Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 Apr 1999 <nathan@acm.org>
5 // derived from a bug report by <rch@larissa.sd.bi.ruhr-uni-bochum.de>
6 // http://gcc.gnu.org/ml/gcc-bugs/1999-04n/msg00631.html
7 // the code is wrong, but we fell over badly
11 int A::fn(); // { dg-warning "" } extra qualification
12 int A::m; // { dg-warning "" } extra qualification
14 struct A::e {int i;}; // { dg-warning "" } extra qualification
15 struct A::expand { // { dg-warning "" } extra qualification
20 void foo(struct A::e);
21 void foo(struct A::z); // { dg-warning "" } extra qualification
26 struct A::fink { // { dg-error "" } no such member
29 struct A::Z { // { dg-error "" } A::Z not a member of B
34 struct ::Q { // { dg-error "" } ::Q not a member of B
37 int A::fn() { // { dg-error "" } A::fn not a member of B
40 void fn(struct ::Q &);
41 void foo(struct A::y); // { dg-error "" } no such member
44 struct ::C { // { dg-warning "" } extra qualification
55 void NMS::fn(); // { dg-warning "" "" } extra qualification
56 int NMS::i; // { dg-warning "" "" } extra qualification
57 struct NMS::D { // { dg-warning "" } extra qualification
60 struct N::E { // { dg-error "" } no such type
63 struct ::F { // { dg-error "" } no such type
66 int N::fn() { // { dg-error "" } N::fn not a member of NMS
69 struct N::F { // { dg-error "" } N::F not a member of NMS