blob: 63aa471ec4c3f5a7b7c70a2fb28a3e5706d1a625 [file] [log] [blame]
// Build don't link:
//
// 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 (); // ERROR - not an aggregate type
}