Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-694

[HP aCC 6.15] bogus remark #3348

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: External
    • Labels:
      None
    • Environment:

      HP aCC 6.15/HP-UX

    • Severity:
      Compiler Warning

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: