This is the mail archive of the gcc-bugs@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]

[Bug c/71188] missing warning converting constant integer expression zero to pointer


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.

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