Commit f1819d9a by Nathan Sidwell Committed by Nathan Sidwell

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
parent 105d8e1f
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
* class.c (instantiate_type): Reinstate local variable * class.c (instantiate_type): Reinstate local variable
deleted in previous change. 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> 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
......
...@@ -267,7 +267,7 @@ cp_convert_to_pointer (type, expr) ...@@ -267,7 +267,7 @@ cp_convert_to_pointer (type, expr)
} }
if (type_unknown_p (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'", cp_error ("cannot convert `%E' from type `%T' to type `%T'",
expr, intype, type); expr, intype, type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment