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++/33160] New: wrong "NULL used in arithmetic" warning


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


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