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

[HP aCC 6.15] bogus remark #3348

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • External
    • 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

      { 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

              Unassigned Unassigned
              sebor Martin Sebor

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment