* g++.dg/parse/namespace4.C: New test.

From-SVN: r60832
This commit is contained in:
Nathanael Nerode 2003-01-03 15:50:11 +00:00
parent a25a292fa7
commit 96dafad6fc
2 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2003-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
* g++.dg/parse/namespace4.C: New test.
* g++.dg/template/nested1.C: New test.
* g++.dg/parse/namespace3.C: New test.

View File

@ -0,0 +1,18 @@
/* PR c++/4652 */
/* { dg-do compile } */
/* Another conflict between namespace IDs and other things. */
namespace A { };
class B {
struct {
int x;
} A;
};
int main() {
B b;
return 0;
}