[PATCH] Fix PR c++/92365

Jason Merrill jason@redhat.com
Mon Nov 18 21:25:00 GMT 2019


On 11/8/19 5:01 PM, Bernd Edlinger wrote:
> Hi,
> 
> this fixes an unexprected fallout from my previous patch on the -Wshadow=complatible-local.
> 
> By using can_convert_arg here, it avoids the issue, that can_convert tries to cast
> int() to char*, which is a a possible NULL-pointer value in C++98 (but not in C++11).
> As pointed out in the PR, there are still more issues with can_convert, but I would
> like to fix the regression here without digging any deeper in the mud, at least for now.
> 
> 
> Boot-strapped and reg-tested on x86_64-pc-linux-gnu.
> Is it OK for trunk?
> 
> 
> Thanks
> Bernd.
> 
OK.



More information about the Gcc-patches mailing list