diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7a7ceed851a..ff0d26c4b8c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-01 Nathan Sidwell + + * g++.old-deja/g++.ns/scoped1.C: New test. + 2000-08-30 Alexandre Oliva * lib/g++.exp: Support testing already-installed GCC. diff --git a/gcc/testsuite/g++.old-deja/g++.ns/scoped1.C b/gcc/testsuite/g++.old-deja/g++.ns/scoped1.C new file mode 100644 index 00000000000..63aa471ec4c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/scoped1.C @@ -0,0 +1,26 @@ +// Build don't link: +// +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 10 Aug 2000 + +// 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 +}