From: Jason Merrill Date: Tue, 30 Apr 2002 17:50:12 +0000 (-0400) Subject: decl.c (grokdeclarator): Don't override TYPE_NAME of an anonymous class with a typede... X-Git-Tag: releases/gcc-3.3.0~5375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02294ed26a8529a11fabd99ef4977a5d05547e1e;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/g++.dg/debug/typedef1.C b/gcc/testsuite/g++.dg/debug/typedef1.C new file mode 100644 index 000000000000..82455358b969 --- /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; +};