diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-10-06 09:13:11 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-10-06 09:13:11 +0000 |
commit | 903cef853fd04ab6ff24672cba7b096ccb69f2ce (patch) | |
tree | 59b5d9a5abc6d222c04c7262c3fb603caa164879 /gcc | |
parent | 92777ce4598caa5b17d916e7b0d8bad2fa7a950a (diff) | |
download | gcc-903cef853fd04ab6ff24672cba7b096ccb69f2ce.zip gcc-903cef853fd04ab6ff24672cba7b096ccb69f2ce.tar.gz gcc-903cef853fd04ab6ff24672cba7b096ccb69f2ce.tar.bz2 |
* g++.old-deja/g++.pt/enum14.C: New test.
From-SVN: r36756
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash59.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/enum14.C | 36 |
3 files changed, 41 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f389e4f..0feeba7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-10-06 Nathan Sidwell <nathan@codesourcery.com> + + * g++.old-deja/g++.pt/enum14.C: New test. + 2000-10-05 Nathan Sidwell <nathan@codesourcery.com> * g++.old-deja/g++.pt/crash59.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash59.C b/gcc/testsuite/g++.old-deja/g++.pt/crash59.C index 54e0722..e42f348 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash59.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash59.C @@ -1,6 +1,7 @@ // Build don't link: // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 4 Oct 2000 <nathan@codesourcery.com> +// Origin: Bug 543 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> // Bug 532. We failed to bail out when tsubsting a _DECL failed diff --git a/gcc/testsuite/g++.old-deja/g++.pt/enum14.C b/gcc/testsuite/g++.old-deja/g++.pt/enum14.C new file mode 100644 index 0000000..9607755 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/enum14.C @@ -0,0 +1,36 @@ +// Build don't link: +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 4 Oct 2000 <nathan@codesourcery.com> +// Origin: bug 511 malte.starostik@t-online.de + +// Bug 511. We failed to set access correctly for enumeration members of +// template classes + +template <class> +class A +{ + public: + enum foo {bar}; + typedef int baz; +}; + +struct C: public A<int> +{ + void choke (foo); + void choke (baz); +}; + +template <class> +struct B +{ + private: + enum foo {bar}; // ERROR - private + typedef int baz; // ERROR - private +}; + +struct D: public B<int> +{ + void choke (foo); // ERROR - within this context + void choke (baz); // ERROR - within this context +}; + |