aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-07-22 19:43:21 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-07-22 19:43:21 +0000
commitfb4149396a6445e2cb9a16faa64c9b2231719955 (patch)
tree35da72bfb98493f4ecb7dfac18b386d1dc11cbaa /gcc
parente7854b6f22608dd78140918d8cf5e062a533cd56 (diff)
downloadgcc-fb4149396a6445e2cb9a16faa64c9b2231719955.zip
gcc-fb4149396a6445e2cb9a16faa64c9b2231719955.tar.gz
gcc-fb4149396a6445e2cb9a16faa64c9b2231719955.tar.bz2
cp-tree.h (DERIVED_FROM_P): Pass tf_none to lookup_base, not tf_warning_or_error.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/cp-tree.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8f4d375..862e859 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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řej Bílka <neleai@seznam.cz>
* class.c: Fix typos.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index a837d22..459c0e2 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -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) \