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]

[C++ Patch] PR 67216 ("false is still a null pointer constant")


Hi,

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.

Tested x86_64-linux.

Thanks,
Paolo.

///////////////////////

Attachment: CL_67216
Description: Text document

Attachment: patch_67216
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]