diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-09 11:46:02 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-09 11:46:02 +0000 |
commit | 586f49f76129a561826d596d6108ac9b9fe1672a (patch) | |
tree | b28a92b457928ac38f806da8e59d485852428a53 /gcc/testsuite | |
parent | 7aa7231b5c8ade1064578396abe1ee99c657f367 (diff) | |
download | ppe42-gcc-586f49f76129a561826d596d6108ac9b9fe1672a.tar.gz ppe42-gcc-586f49f76129a561826d596d6108ac9b9fe1672a.zip |
* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as
well as the TYPE_DECL, when a typedef name is assigned to a
previously anonymous type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/derived1.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/derived1.C b/gcc/testsuite/g++.old-deja/g++.pt/derived1.C new file mode 100644 index 00000000000..e2275f4328d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/derived1.C @@ -0,0 +1,24 @@ +// Build don't link: + +class A +{ +public: + typedef int Info; +}; + +template <class T> +class B : public A +{ +public: + typedef struct{ + int a; + int b; + } Info; +}; + +void f() +{ + B<A>::Info ie; + ie.a=1; + ie.b=2; +} |