]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/7982 (core dump due to recursive definition (using stl set))
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Sun, 23 Feb 2003 14:49:01 +0000 (14:49 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Sun, 23 Feb 2003 14:49:01 +0000 (14:49 +0000)
PR c++/7982
* decl.c (warn_about_implicit_typename_lookup): Handle TYPEOF_TYPE.

* g++.dg/warn/implicit-typename1.C: New test.

From-SVN: r63322

gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog

index 892b52601f05885ce6d64fe4572e834e24efaea1..a3df8915464ff7428380f2cf3bb62d51927f1af5 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/7982
+       * decl.c (warn_about_implicit_typename_lookup): Handle TYPEOF_TYPE.
+
 2003-02-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/9459
index 5c891a552c639c9906799f26b45ce0d3f4cae077..cbb87184eda3b48ccab4629f9fd8b65638b9e4ba 100644 (file)
@@ -6006,6 +6006,7 @@ warn_about_implicit_typename_lookup (typename, binding)
   tree name = DECL_NAME (typename);
 
   if (! (TREE_CODE (binding) == TEMPLATE_DECL
+        && CLASS_TYPE_P (subtype)
         && CLASSTYPE_TEMPLATE_INFO (subtype)
         && CLASSTYPE_TI_TEMPLATE (subtype) == binding)
       && ! (TREE_CODE (binding) == TYPE_DECL
index 0ddc4c38bf6b109627540403e65509fb992a9227..506d8188af4404d0030f57fba62421646d261efa 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/7982
+       * g++.dg/warn/implicit-typename1.C: New test.
+
 2003-02-21  Glen Nakamura  <glen@imodulo.com>
 
        * gcc.c-torture/execute/20030221-1.c: New test.