This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71188] missing warning converting constant integer expression zero to pointer
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 May 2016 00:40:27 +0000
- Subject: [Bug c/71188] missing warning converting constant integer expression zero to pointer
- Auto-submitted: auto-generated
- References: <bug-71188-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71188
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Unlike the diagnostics for values that are not constant integers, any
diagnostic for these cases must not be a pedwarn, because converting an
arbitrary integer constant expression with value 0 implicitly to pointer
type is valid in ISO C.