From 02294ed26a8529a11fabd99ef4977a5d05547e1e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 30 Apr 2002 13:50:12 -0400 Subject: [PATCH] decl.c (grokdeclarator): Don't override TYPE_NAME of an anonymous class with a typedef if... * 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/debug/typedef1.C diff --git a/gcc/testsuite/g++.dg/debug/typedef1.C b/gcc/testsuite/g++.dg/debug/typedef1.C new file mode 100644 index 00000000000..82455358b96 --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/typedef1.C @@ -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; +}; -- 2.30.2