decl.c (grokdeclarator): Don't override TYPE_NAME of an anonymous class with a typede...
authorJason Merrill <jason@gcc.gnu.org>
Tue, 30 Apr 2002 17:50:12 +0000 (13:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Apr 2002 17:50:12 +0000 (13:50 -0400)
        * decl.c (grokdeclarator): Don't override TYPE_NAME of an
        anonymous class with a typedef if there are attributes.

[[Split portion of a mixed commit.]]

From-SVN: r52955.2

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;
+};