You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/03/15 01:46:26 UTC

[jira] Created: (STDCXX-764) [HP aCC 6.16] bogus warning #20200 on trivially safe code

[HP aCC 6.16] bogus warning #20200 on trivially safe code
---------------------------------------------------------

                 Key: STDCXX-764
                 URL: https://issues.apache.org/jira/browse/STDCXX-764
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
            Reporter: Martin Sebor


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)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.