Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10064

GCC-8 fails due to "basic_string(const TString&) is ambiguous"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.16/00
    • Fix Version/s: 6.18/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS 7, 3.10.0, GCC 8.2.1 (from devtoolset-8)

      Description

      [ 84%] Building CXX object hist/hist/CMakeFiles/Hist.dir/src/TAxisModLab.cxx.o
      In file included from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TF1.h:27,
                       from /home/awegrzyn/alice/sw/SOURCES/ROOT/v6-16-00-patches/5e6d86919f/hist/hist/src/AnalyticalIntegrals.cxx:21:
      /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TFormula.h: In member function 'std::string TFormula::GetGradientFuncName() const':
      /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TFormula.h:125:36: error: call of overloaded 'basic_string(const TString&)' is ambiguous
             return std::string(fClingName) + "_grad";
                                          ^
      In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:52,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TSchemaHelper.h:17,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TGenericClassInfo.h:16,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/Rtypes.h:192,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TObject.h:17,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TBuffer.h:24,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TDirectory.h:24,
                       from /home/awegrzyn/alice/sw/BUILD/ca4f55d57d4fbb9fad2d3bd776aeb423827d1909/ROOT/include/TROOT.h:28,
                       from /home/awegrzyn/alice/sw/SOURCES/ROOT/v6-16-00-patches/5e6d86919f/hist/hist/src/AnalyticalIntegrals.cxx:20:
      /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.h:3562:7: note: candidate: 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
             basic_string(basic_string&& __str)
             ^~~~~~~~~~~~
      /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.h:3545:7: note: candidate: 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
             basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
             ^~~~~~~~~~~~
      /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.h:3498:7: note: candidate: 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
             basic_string(const basic_string& __str);
             ^~~~~~~~~~~~
      
      

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              awegrzyn Adam Wegrzynek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: