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

Reply via email to