HP aC++/HP ANSI C Release Notes (B3901-90037; A.06.26; September 2011)

error #2020: identifier "i" is undefined
Reference to outer scope variable instead of loop index:
warning #2780-D: reference is to variable "i" (declared at line X) --
under old for-init scoping rules it would have been variable "i"
(declared at line Y)
With +wlint:
warning #3348-D: declaration hides variable "i" (declared at line X)
By also compiling with +We2780, the two errors, 2020 and 2780, should catch any
issues resulting from the change in the C++ default.
If you are already using -Aa, this also enables the new default.
New features in version A.06.15
Version A.06.15 of the HP aC++ compiler supports the following new features:
printf, fprintf Optimization (New)
+Wmacro Option (New)
+Wcontext_limit Option (New)
+wperfadvice Option (New)
+Wv Option (New)
+wlock Option (New)
+O[no]autopar Option (New)
+O[no]loop_block Option (New)
+O[no]loop_unroll_jam (Default Changed)
+Olit=all is the new default for HP C (Change)
+macro_debug= Option (New)
+pathtrace Option (New)
+check Suboptions (New)
-Bhidden_def Option (New)
-dM Option (New)
#pragma OPT_LEVEL INITIAL (New)
#pragma OPTIMIZE (Deprecated)
#pragma [NO]INLINE (New for C++ mode)
_Asm_ld, _Asm_ldf, _Asm_st, _Asm_stf intrinsics added (New)
Debugging code compiled with opt levels above +O1 now supported (New)
32 Product changes in earlier versions