OSDN Git Service

PR c++/28304
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2006 15:21:42 +0000 (15:21 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2006 15:21:42 +0000 (15:21 +0000)
* decl2.c (check_classfn): Return NULL_TREE on error.

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

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 821df2b..4741d4a 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-17  Steve Ellcey  <sje@cup.hp.com>
+
+       PR c++/28304
+       * decl2.c (check_classfn): Return NULL_TREE on error.
+
 2006-07-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/28250
index dfb30f2..385f8d9 100644 (file)
@@ -673,8 +673,11 @@ check_classfn (tree ctype, tree function, tree template_parms)
   else if (!COMPLETE_TYPE_P (ctype))
     cxx_incomplete_type_error (function, ctype);
   else
-    error ("no %q#D member function declared in class %qT",
-          function, ctype);
+    {
+      error ("no %q#D member function declared in class %qT",
+            function, ctype);
+      return NULL_TREE;
+    }
 
   /* If we did not find the method in the class, add it to avoid
      spurious errors (unless the CTYPE is not yet defined, in which