if (cv_qualifier != NULL_TREE
&& cv_qualifier != ridpointers[(int) RID_VOLATILE])
{
- cp_warning ("%s qualifier ignored on asm",
+ warning ("%s qualifier ignored on asm",
IDENTIFIER_POINTER (cv_qualifier));
cv_qualifier = NULL_TREE;
}
resolve the overloading. */
if (TREE_TYPE (converted_operand) == unknown_type_node)
{
- cp_error ("type of asm operand `%E' could not be determined",
+ error ("type of asm operand `%E' could not be determined",
TREE_VALUE (t));
converted_operand = error_mark_node;
}
DECL_NAME (decl) = return_id;
else
{
- cp_error ("return identifier `%D' already in place", return_id);
+ error ("return identifier `%D' already in place", return_id);
return;
}
}
base != last_base_warned_about;
base = TREE_CHAIN (base))
{
- cp_warning ("base initializer for `%T'",
+ warning ("base initializer for `%T'",
TREE_PURPOSE (base));
warning (" will be re-ordered to precede member initializations");
}
fn = DECL_NAME (fn);
else
{
- cp_error ("calling type `%T' like a method", fn);
+ error ("calling type `%T' like a method", fn);
return error_mark_node;
}
}
return build_min_nt (PSEUDO_DTOR_EXPR, object, scope, destructor);
if (scope && scope != destructor)
- cp_error ("destructor specifier `%T::~%T()' must have matching names",
+ error ("destructor specifier `%T::~%T()' must have matching names",
scope, destructor);
if ((scope == NULL_TREE || IDENTIFIER_GLOBAL_VALUE (destructor))
&& (TREE_CODE (TREE_TYPE (object)) !=
TREE_CODE (TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (destructor)))))
- cp_error ("`%E' is not of type `%T'", object, destructor);
+ error ("`%E' is not of type `%T'", object, destructor);
return cp_convert (void_type_node, object);
}
if (processing_template_parmlist)
{
- cp_error ("definition of `%#T' inside template parameter list", t);
+ error ("definition of `%#T' inside template parameter list", t);
return error_mark_node;
}
This is erroneous. */
else if (TREE_CODE (t) == TYPENAME_TYPE)
{
- cp_error ("invalid definition of qualified type `%T'", t);
+ error ("invalid definition of qualified type `%T'", t);
t = error_mark_node;
}
{
if (cp_type_quals (base_class) != 0)
{
- cp_error ("base class `%T' has cv qualifiers", base_class);
+ error ("base class `%T' has cv qualifiers", base_class);
base_class = TYPE_MAIN_VARIANT (base_class);
}
result = build_tree_list (access_specifier, base_class);
if (PROCESSING_REAL_TEMPLATE_DECL_P ()
|| processing_explicit_instantiation
|| processing_specialization)
- cp_error ("multiple declarators in template declaration");
+ error ("multiple declarators in template declaration");
}
/* Implement the __typeof keyword: Return the type of EXPR, suitable for