This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Rewrite convert_nontype_argument
Mark Mitchell <mark@codesourcery.com> writes:
> Jason Merrill wrote:
>
>>Replace all uses of build_nop with convert. Mark, what's the point of
>>build_nop?
>>
>>
> Eek, we're going to disagree again...
>
> "convert" is appropriate for conversions involving user code, but it
> does things that are inefficient for internally generated code. For
> example, it checks for error conditions and issues messages --
> something we don't need for internal use in the situations where we
> use build_nop. I'd prefer we not have to set TREE_NO_WARNING on
> internally generated code fragments, but calling "convert" requires
> that.
I vaguely remember something about "fold_convert" being the current
preferred way to handle this?
zw