Manuel López-Ibáñez - Re: [PING^3] Wconversion: fixes for C++ front-end (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
On Tue, 6 Feb 2007, Manuel López-Ibáñez wrote:
| I am waiting for patches to get reviewed. I hope that at least this is | not my fault. If I can do something to get the patches reviewed | faster, please, let me know.
The bits:
if (TREE_TYPE (op0) != result_type)
op0 = cp_convert (result_type, op0);
if (TREE_TYPE (op1) != result_type)
op1 = cp_convert (result_type, op1);
{
convert_and_check (result_type, op0);
op0 = cp_convert (result_type, op0);
}
if (TREE_TYPE (op1) != result_type)
{
convert_and_check (result_type, op1);
op1 = cp_convert (result_type, op1);
}
convert op0, but throw the result away, then call cp_convert to convert again. That looks curious to me. Why would we want to do that?