Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
HP C/aC++ B3910B A.06.16 [Nov 26 2007]
-
Compiler Warning
Description
This warning is obviously incorrect. It goes away with optimization.
$ cat t.cpp && aCC -V -c +w t.cpp
int bar () {
const char *s = 0;
if (!s)
s = ";";
return *s;
}
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
"t.cpp", line 6, procedure bar: warning #20200-D: Potential null pointer
dereference through s is detected (null definition:t.cpp, line 2)
Attachments
Issue Links
- is depended upon by
-
STDCXX-754 [HP aCC 6.16] Potential null pointer dereference in cmdopt.cpp
- Open
-
STDCXX-773 [HP aCC 6.16] warning #20200-D: Potential null pointer dereference in 21.string.erase.cpp
- Resolved
-
STDCXX-745 [HP aCC 6.16] Potential null pointer dereference in locale_body.cpp
- Closed
-
STDCXX-746 [HP aCC 6.16] Potential null pointer dereference in locale_combine.cpp
- Closed
-
STDCXX-751 [HP aCC 6.16] Potential null pointer dereference in locale_stub.cpp
- Closed