* decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
non-NULL first.
* g++.dg/parse/typedef1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52900
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-04-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/6477
+ * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
+ non-NULL first.
+
2002-04-29 Mark Mitchell <mark@codesourcery.com>
PR c++/6492
tree original;
original = original_type (type);
+ if (! TYPE_NAME (original))
+ return NULL_TREE;
if (TYPE_IDENTIFIER (original) == TYPE_IDENTIFIER (type)
&& (CP_DECL_CONTEXT (TYPE_NAME (original))
== CP_DECL_CONTEXT (TYPE_NAME (type)))
+2002-04-29 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.dg/parse/typedef1.C: New test.
+
2002-04-29 Mark Mitchell <mark@codesourcery.com>
PR c++/6486
--- /dev/null
+// PR c++/6477
+typedef struct A_ *A; // { dg-error "previous declaration as" }
+typedef struct A B; // { dg-error "conflicting types" }