+2005-10-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2004-09-23 Andrew Pinski <pinskia@physics.uc.edu>
+ PR c++/17618
+ * cvt.c (cp_convert_to_pointer): Return early when the type is
+ an error_mark_node.
+
+ 2004-05-22 Roger Sayle <roger@eyesopen.com>
+ * name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by
+ returning when TREE_TYPE is error_mark_node.
+ * typeck.c (require_complete_type): Return error_mark_node if
+ value's type is an error_mark_node.
+
+ 2004-11-02 Mark Mitchell <mark@codesourcery.com>
+ PR c++/18177
+ * typeck.c (build_const_cast): Use error_operand_p.
+
2005-10-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* call.c (resolve_args): Remove redundant test.
tree intype = TREE_TYPE (expr);
enum tree_code form;
tree rval;
+ if (intype == error_mark_node)
+ return error_mark_node;
if (IS_AGGR_TYPE (intype))
{
return decl;
DECL_ERROR_REPORTED (decl) = 1;
+
+ if (TREE_TYPE (decl) == error_mark_node)
+ return decl;
+
if (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (TREE_TYPE (decl)))
{
error ("name lookup of `%D' changed for new ISO `for' scoping",
else
type = TREE_TYPE (value);
+ if (type == error_mark_node)
+ return error_mark_node;
+
/* First, detect a valid value with a complete type. */
if (COMPLETE_TYPE_P (type))
return value;
{
tree intype;
- if (type == error_mark_node || expr == error_mark_node)
+ if (type == error_mark_node || error_operand_p (expr))
return error_mark_node;
if (processing_template_decl)
+2005-10-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2004-09-23 Andrew Pinski <pinskia@physics.uc.edu>
+ PR c++/17618
+ * g++.dg/lookup/crash5.C: New test.
+
+ 2004-05-22 Wolfgang Bangerth <bangerth@dealii.org>
+ Roger Sayle <roger@eyesopen.com>
+ * g++.dg/lookup/forscope2.C: New test case.
+
+ 2004-11-02 Mark Mitchell <mark@codesourcery.com>
+ PR c++/18177
+ * g++.dg/conversion/const3.C: New test.
+
2005-10-08 Janis Johnson <janis187@us.ibm.com>
PR debug/24267