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:
parent
105d8e1f6e
commit
f1819d9a3d
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user