This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33160] New: wrong "NULL used in arithmetic" warning
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2007 10:46:40 -0000
- Subject: [Bug c++/33160] New: wrong "NULL used in arithmetic" warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
typedef int __attribute__((mode(pointer))) intptr_t;
int main(void)
{
intptr_t t = 0;
if (t != ((intptr_t)__null)) t = 1;
return 0;
}
sss.cc: In function 'int main()':
sss.cc:5: warning: NULL used in arithmetic
--
Summary: wrong "NULL used in arithmetic" warning
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33160