stdcxx-dev 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-384) [HP cadvise] bogus error #2101 with -Aa and for loop
Date Wed, 04 Apr 2007 21:15:32 GMT
[HP cadvise] bogus error #2101 with -Aa and for loop
----------------------------------------------------

                 Key: STDCXX-384
                 URL: https://issues.apache.org/jira/browse/STDCXX-384
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP casdvise with aCC 3.73
            Reporter: Martin Sebor


-------- Original Message --------
Subject: bogus cadvise error #2101 on -Aa
Date: Wed, 04 Apr 2007 14:41:54 -0600
From: Martin Sebor <sebor@roguewave.com>
Organization: Rogue Wave Software
To: acxx@cup.hp.com

cadvise doesn't seem to know that -Wc,-ansi_for_scope,on is included in -Aa.

Martin

$ cat t.cpp && aCC -Aa -V t.cpp && cadvise aCC -Aa -V t.cpp
int main ()
{
    for (int i = 0; ; );
    for (int i = 0; ; );
}

aCC: HP ANSI C++ B3910B A.03.73
92453-07 linker command s800.sgs ld PA64 B.11.45 REL 050725
/usr/ccs/bin/ld: 92453-07 linker linker ld B.11.45 050725
aCC: HP ANSI C++ B3910B A.03.73
92453-07 linker command s800.sgs ld PA64 B.11.45 REL 050725
/usr/ccs/bin/ld: 92453-07 linker linker ld B.11.45 050725
"/build/sebor/stdcxx-aCC-3.73-12D/examples/t.cpp", line 4: warning #2128-D:
          loop is not reachable from preceding code
      for (int i = 0; ; );
      ^

"/build/sebor/stdcxx-aCC-3.73-12D/examples/t.cpp", line 4: error #2101: "i"
          has already been declared in the current scope
      for (int i = 0; ; );
               ^

1 error detected in the compilation of 
"/build/sebor/stdcxx-aCC-3.73-12D/examples/t.cpp".
cadvise: warning 108:  error while analyzing file "t.cpp"


-- 
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