Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
HP aCC 6.15/HP-UX
-
Compiler Warning
Description
The remark in the program below is obviously bogus:
$ cat t.cpp && aCC -V +w t.cpp
struct S { enum
; };
template <class T>
int foo () {
const int X = 1;
return X;
}
int main ()
{ return foo<int>(); }aCC: HP C/aC++ B3910B A.06.14 [Feb 22 2007]
"t.cpp", line 4: remark #3348-D: declaration hides constant "S::X" (declared at line 1)
const int X = 1;
^
detected during instantiation of "int foo<T>() [with T=int]" at line 8
ld: 92453-07 linker ld HP Itanium(R) B.12.43 IPF/IPF
Attachments
Issue Links
- is depended upon by
-
STDCXX-695 [HP aCC 6.15] lots of noise due to compiler remarks
- Open