Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ns/scoped1.C

raw
1 // { dg-do assemble }
2 //
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Aug 2000 <[email protected]>
5
6 // Bug 354. We ICE'd before saying a namespace isn't an aggregate type.
7
8 namespace mlp
9 {
10 struct base
11 {
12 void reset ();
13 };
14 }
15
16 struct eo : mlp:: base
17 {
18 };
19
20 void foo (eo &ref)
21 {
22 ref.mlp::base::reset ();
23 ref.base::reset ();
24 ref.reset ();
25 ref.mlp::reset (); // { dg-error "" } not an aggregate type
26 }