[
https://issues.apache.org/jira/browse/STDCXX-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487355
]
Martin Sebor commented on STDCXX-384:
-------------------------------------
-------- Original Message --------
Subject: Re: bogus cadvise error #2101 on -Aa
Date: Wed, 4 Apr 2007 20:17:03 -0700 (PDT)
From: Dennis Handly <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>From: Martin Sebor <[EMAIL PROTECTED]>
>cadvise doesn't seem to know that -Wc,-ansi_for_scope,on is
>included in -Aa.
It seems to translate -Aa to -AP.
I filed CR JAGag36976:
Error 2101 on cadvise aCC -Aa, -Aa not passed to ca_aCC
> [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 <[EMAIL PROTECTED]>
> Organization: Rogue Wave Software
> To: [EMAIL PROTECTED]
> 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.