From f017f649b4427b8efa31dbe640995b40596b14c8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 20 Aug 1997 01:07:33 +0000 Subject: pt.c (lookup_nested_type_by_name): Handle typedef wierdness. * pt.c (lookup_nested_type_by_name): Handle typedef wierdness. * typeck2.c (my_friendly_abort): Report bugs to egcs-bugs@cygnus.com. From-SVN: r14857 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/pt.c | 4 +++- gcc/cp/typeck2.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'gcc') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1b18b8a..ed0250e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ Tue Aug 19 02:26:07 1997 Jason Merrill + * pt.c (lookup_nested_type_by_name): Handle typedef wierdness. + + * typeck2.c (my_friendly_abort): Report bugs to egcs-bugs@cygnus.com. + * pt.c (instantiate_class_template): Call repo_template_used before finish_prevtable_vardecl. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 001a922..e13b19d 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1368,7 +1368,9 @@ lookup_nested_type_by_name (ctype, name) for (t = CLASSTYPE_TAGS (ctype); t; t = TREE_CHAIN (t)) { - if (name == TREE_PURPOSE (t)) + if (name == TREE_PURPOSE (t) + /* this catches typedef enum { foo } bar; */ + || name == TYPE_IDENTIFIER (TREE_VALUE (t))) return TREE_VALUE (t); } return NULL_TREE; diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index d2a9839..93b8096 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -323,7 +323,7 @@ my_friendly_abort (i) ack ("Internal compiler error."); else ack ("Internal compiler error %d.", i); - ack ("Please submit a full bug report to `bug-g++@prep.ai.mit.edu'."); + ack ("Please submit a full bug report to `egcs-bugs@cygnus.com'."); } else error ("confused by earlier errors, bailing out"); @@ -337,7 +337,7 @@ my_friendly_abort (i) else error ("Internal compiler error %d.", i); - fatal ("Please submit a full bug report to `bug-g++@prep.ai.mit.edu'."); + fatal ("Please submit a full bug report to `egcs-bugs@cygnus.com'."); } void -- cgit v1.1