summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/scoped1.C
blob: 32c20903e0ff8bbd076b41f5ce7d7b4fc9eecc75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do assemble  }
// 
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000 <nathan@codesourcery.com>

// Bug 354. We ICE'd before saying a namespace isn't an aggregate type.

namespace mlp
{
  struct base
  {
    void reset ();
  };
}

struct eo : mlp:: base
{
};

void foo (eo &ref)
{
  ref.mlp::base::reset ();
  ref.base::reset ();
  ref.reset ();
  ref.mlp::reset ();        // { dg-error "" } not an aggregate type
}