cvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes.

* cvt.c (cp_convert_to_pointer): Pass itf_complain, not
	itf_no_attributes.

From-SVN: r35759
This commit is contained in:
Nathan Sidwell 2000-08-17 14:09:21 +00:00 committed by Nathan Sidwell
parent 105d8e1f6e
commit f1819d9a3d
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
* class.c (instantiate_type): Reinstate local variable
deleted in previous change.
* cvt.c (cp_convert_to_pointer): Pass itf_complain, not
itf_no_attributes.
2000-08-17 Nathan Sidwell <nathan@codesourcery.com>

View File

@ -267,7 +267,7 @@ cp_convert_to_pointer (type, expr)
}
if (type_unknown_p (expr))
return instantiate_type (type, expr, itf_no_attributes);
return instantiate_type (type, expr, itf_complain);
cp_error ("cannot convert `%E' from type `%T' to type `%T'",
expr, intype, type);