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

[IBM VAC++ 6.0] ld duplicate symbol warnings for trivially inline functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • VisualAge C++ 6.0

    Description

      $ cat t.cpp && xlC -qversion || true && xlC -c -DTU1 t.cpp -o 1.o && xlC -c t.cpp -o 2.o && xlC -G -brtl 1.o 2.o -o lib.so
      struct S { void foo () { } };

      #ifdef TU1
      void bar (S s)

      { s.foo (); }
      #else
      void baz (S s) { s.foo (); }

      #endif

      C for AIX version 6.0.0.0
      ld: 0711-224 WARNING: Duplicate symbol: .S::foo()
      ld: 0711-224 WARNING: Duplicate symbol: S::foo()
      ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

      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: