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

[Compaq C++] cv-qualifiers of function parameters mangled into function type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • Compaq/HP C++/Tru64 UNIX

    Description

      The program below fails to link with Compaq/HP C++:

      $ cat ~/tmp/t.cpp && cxx -V -c ~/tmp/t.cpp -o foo.o && cxx -DMAIN -c ~/tmp/t.cpp -o t.o && cxx t.o foo.o || nm -mangled_name_only foo.o t.o | grep foo
      void foo (int);

      #ifdef MAIN
      int main ()

      { foo (0); }

      #else
      void foo (const int) { }
      #endif
      Compaq C++ V6.5-038 for Compaq Tru64 UNIX V5.1B (Rev. 2650)
      Compiler Driver V6.5-038 (cxx) cxx Driver
      ld:
      Unresolved:
      foo(int)
      foo.o:
      foo__XCi | 0000000000000000 | T | 0000000000000008
      foo__Xi | 0000000000000000 | U | 0000000000000008

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: