On 05/22/2012 12:53 AM, Jason Merrill wrote:
On 05/21/2012 04:18 PM, Paolo Carlini wrote:
- check_narrowing (type, init);
+ check_narrowing (type, perform_implicit_conversion
+ (type, tinit, tf_none));
Any changes should go inside check_narrowing rather than outside. I
think the best fix if ftype is a class would be to find the implicit
conversion sequence from ftype to type, then drop the second standard
conversion sequence and just perform the user-defined conversion, then
continue with the rest of check_narrowing. The conversion part should
be a new function in call.c.
Ok, thanks!
Paolo.