diff options
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 4672830..37839d7 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -552,9 +552,6 @@ convert_to_reference (tree reftype, tree expr, int convtype, if (flags & LOOKUP_COMPLAIN) error ("cannot convert type `%T' to type `%T'", intype, reftype); - if (flags & LOOKUP_SPECULATIVELY) - return NULL_TREE; - return error_mark_node; } @@ -689,8 +686,6 @@ ocp_convert (tree type, tree expr, int convtype, int flags) return rval; if (flags & LOOKUP_COMPLAIN) error ("`%#T' used where a `%T' was expected", intype, type); - if (flags & LOOKUP_SPECULATIVELY) - return NULL_TREE; return error_mark_node; } if (code == BOOLEAN_TYPE) @@ -761,8 +756,6 @@ ocp_convert (tree type, tree expr, int convtype, int flags) if (flags & LOOKUP_COMPLAIN) error ("conversion from `%T' to non-scalar type `%T' requested", TREE_TYPE (expr), type); - if (flags & LOOKUP_SPECULATIVELY) - return NULL_TREE; return error_mark_node; } |