You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/01/12 01:18:33 UTC

[jira] Created: (STDCXX-694) [HP aCC 6.15] bogus remark #3348

[HP aCC 6.15] bogus remark #3348
--------------------------------

                 Key: STDCXX-694
                 URL: https://issues.apache.org/jira/browse/STDCXX-694
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP aCC 6.15/HP-UX
            Reporter: Martin Sebor
            Priority: Minor


The remark in the program below is obviously bogus:

$ cat t.cpp && aCC -V +w t.cpp
struct S { enum { X }; };
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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.