stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-764) [HP aCC 6.16] bogus warning #20200 on trivially safe code
Date Sat, 15 Mar 2008 00:46:26 GMT
[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.


Mime
View raw message