[HP aCC 6.16] bogus warning #4276 on (-0x7fffffff - 1)
------------------------------------------------------
Key: STDCXX-889
URL: https://issues.apache.org/jira/browse/STDCXX-889
Project: C++ Standard Library
Issue Type: Bug
Components: External
Environment: aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
Reporter: Martin Sebor
The warning below is incorrect -- the relational operator clearly evaluates to
true.
{noformat}
$ cat t.cpp && aCC +w -V t.cpp && ./a.out && echo PASS
#include <assert.h>
int main ()
{
int x = 0;
assert (-0x7fffffff - 1 < x);
}
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
"t.cpp", line 6: warning #4276-D: relational operator "<" always
evaluates to
'false'
assert (-0x7fffffff - 1 < x);
^
ld: 92453-07 linker ld HP Itanium(R) B.12.41 IPF/IPF
PASS
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.