This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 05/21/2012 04:18 PM, Paolo Carlini wrote:Ok, thanks!- 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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |