Commit f017f649 by Jason Merrill Committed by Jason Merrill

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
parent 04f41951
Tue Aug 19 02:26:07 1997 Jason Merrill <jason@yorick.cygnus.com> Tue Aug 19 02:26:07 1997 Jason Merrill <jason@yorick.cygnus.com>
* 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 * pt.c (instantiate_class_template): Call repo_template_used
before finish_prevtable_vardecl. before finish_prevtable_vardecl.
......
...@@ -1368,7 +1368,9 @@ lookup_nested_type_by_name (ctype, name) ...@@ -1368,7 +1368,9 @@ lookup_nested_type_by_name (ctype, name)
for (t = CLASSTYPE_TAGS (ctype); t; t = TREE_CHAIN (t)) 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 TREE_VALUE (t);
} }
return NULL_TREE; return NULL_TREE;
......
...@@ -323,7 +323,7 @@ my_friendly_abort (i) ...@@ -323,7 +323,7 @@ my_friendly_abort (i)
ack ("Internal compiler error."); ack ("Internal compiler error.");
else else
ack ("Internal compiler error %d.", i); 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 else
error ("confused by earlier errors, bailing out"); error ("confused by earlier errors, bailing out");
...@@ -337,7 +337,7 @@ my_friendly_abort (i) ...@@ -337,7 +337,7 @@ my_friendly_abort (i)
else else
error ("Internal compiler error %d.", i); 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 void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment