* g++.old-deja/g++.ns/scoped1.C: New test.

From-SVN: r36095
This commit is contained in:
Nathan Sidwell 2000-09-01 09:32:52 +00:00 committed by Nathan Sidwell
parent 4f8025eb06
commit 291c9aa2c8
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.ns/scoped1.C: New test.
2000-08-30 Alexandre Oliva <aoliva@redhat.com>
* lib/g++.exp: Support testing already-installed GCC.

View File

@ -0,0 +1,26 @@
// 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
}