[C++ Patch] PR 67216 ("false is still a null pointer constant")
Jason Merrill
jason@redhat.com
Mon Aug 17 18:52:00 GMT 2015
On 08/17/2015 02:40 PM, Paolo Carlini wrote:
> the bug is very clear: in C++11 we reject the testcase because
> null_ptr_cst_p returns 'true' for 'false', whereas [conv.ptr] is
> carefully worded in terms of integer literals not boolean literals. The
> obvious fix, using == INTEGER_TYPE instead of CP_INTEGRAL_TYPE_P,
> appears to work well.
OK. I wonder if we can also drop the STRIP_NOPs on the C++11 path.
Jason
More information about the Gcc-patches
mailing list