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
@ -3,6 +3,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>
|
||||||
|
|
||||||
* cp-tree.h (instantiate_type_flags): New enumeration.
|
* cp-tree.h (instantiate_type_flags): New enumeration.
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user