FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / scoped1.C
blob63aa471ec4c3f5a7b7c70a2fb28a3e5706d1a625
1 // Build don't link:
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Aug 2000 <nathan@codesourcery.com>
6 // Bug 354. We ICE'd before saying a namespace isn't an aggregate type.
8 namespace mlp
10   struct base
11   {
12     void reset ();
13   };
16 struct eo : mlp:: base
20 void foo (eo &ref)
22   ref.mlp::base::reset ();
23   ref.base::reset ();
24   ref.reset ();
25   ref.mlp::reset ();        // ERROR - not an aggregate type