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 56373


Hi,

I think submitter is right that with -Wzero-as-null-pointer-constant we want to warn also for zero converted to nullptr_t, not just pointer types. In that case the below is the simplest fix I could figure out, passes testing on x86_64-linux. Otherwise I guess we should simply close the PR.

Thanks,
Paolo.

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

Attachment: CL_56373
Description: Text document

Attachment: patch_56373
Description: Text document


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