* decl.c (grokdeclarator): Don't override TYPE_NAME of an
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 17:50:12 +0000 (17:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 17:50:12 +0000 (17:50 +0000)
        anonymous class with a typedef if there are attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52955 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/debug/typedef1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/debug/typedef1.C b/gcc/testsuite/g++.dg/debug/typedef1.C
new file mode 100644 (file)
index 0000000..8245535
--- /dev/null
@@ -0,0 +1,17 @@
+// PR debug/6436
+// { dg-do compile }
+
+typedef struct 
+{
+  unsigned int a0, a1;
+} A __attribute__ ((aligned(8)));
+
+typedef struct
+{
+  A a;
+} B;
+
+struct C
+{
+  B *bp;
+};