]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-tree.h (DERIVED_FROM_P): Pass tf_none to lookup_base, not tf_warning_or_error.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 22 Jul 2013 19:43:21 +0000 (19:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 22 Jul 2013 19:43:21 +0000 (19:43 +0000)
2013-07-22  Paolo Carlini  <paolo.carlini@oracle.com>

* cp-tree.h (DERIVED_FROM_P): Pass tf_none to lookup_base, not
tf_warning_or_error.

From-SVN: r201145

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index 8f4d37577fd90f92ac7544fbfef541de93af712c..862e8597086c3aa063d31d00753fd2858eb61e74 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * cp-tree.h (DERIVED_FROM_P): Pass tf_none to lookup_base, not
+       tf_warning_or_error.
+
 2013-07-21   OndÅ\99ej Bílka  <neleai@seznam.cz>
 
        * class.c: Fix typos.
index a837d2275a34c258db965ca029c9c38a0e238716..459c0e27ef30043f98467c28fc2dd2a79bfce944 100644 (file)
@@ -1320,8 +1320,7 @@ enum languages { lang_c, lang_cplusplus, lang_java };
 /* Nonzero iff TYPE is derived from PARENT. Ignores accessibility and
    ambiguity issues.  */
 #define DERIVED_FROM_P(PARENT, TYPE) \
-  (lookup_base ((TYPE), (PARENT), ba_any, NULL, tf_warning_or_error)\
-   != NULL_TREE)
+  (lookup_base ((TYPE), (PARENT), ba_any, NULL, tf_none) != NULL_TREE)
 
 /* Gives the visibility specification for a class type.  */
 #define CLASSTYPE_VISIBILITY(TYPE)             \