OSDN Git Service

* pt.c (lookup_nested_type_by_name): Handle typedef wierdness.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 1997 01:07:33 +0000 (01:07 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 1997 01:07:33 +0000 (01:07 +0000)
* typeck2.c (my_friendly_abort): Report bugs to egcs-bugs@cygnus.com.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14857 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/typeck2.c

index 1b18b8a..ed0250e 100644 (file)
@@ -1,5 +1,9 @@
 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
        before finish_prevtable_vardecl.
 
index 001a922..e13b19d 100644 (file)
@@ -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;
index d2a9839..93b8096 100644 (file)
@@ -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