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

GCC 8 Error: call of overloaded 'basic_string(TString)' is ambiguous

    XMLWordPrintable

    Details

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

      ArchLinux x86_64, Linux 4.16.3, GCC 8.1.1

    • Development:

      Description

      Build failure due to the following error:

      /home/gizdov/Packages/builds/root-extra/src/root-6.14.00/geom/gdml/src/TGDMLWrite.cxx: In member function 'void* TGDMLWrite::CreateElConeN(TGeoScaledShape*)':
      /home/gizdov/Packages/builds/root-extra/src/root-6.14.00/geom/gdml/src/TGDMLWrite.cxx:1480:89: error: call of overloaded 'basic_string(TString)' is ambiguous
          std::string format(TString::Format("%s/%s", fltPrecision.Data(), fltPrecision.Data()));
                                                                                               ^
      In file included from /usr/include/c++/8.1.1/string:52,
                       from /usr/include/c++/8.1.1/stdexcept:39,
                       from /usr/include/c++/8.1.1/array:39,
                       from /usr/include/c++/8.1.1/tuple:39,
                       from /usr/include/c++/8.1.1/mutex:38,
                       from /home/gizdov/Packages/builds/root-extra/src/build/include/TGeoManager.h:15,
                       from /home/gizdov/Packages/builds/root-extra/src/root-6.14.00/geom/gdml/src/TGDMLWrite.cxx:129:
      /usr/include/c++/8.1.1/bits/basic_string.h:531:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
             basic_string(basic_string&& __str) noexcept
             ^~~~~~~~~~~~
      /usr/include/c++/8.1.1/bits/basic_string.h:509:7: note: candidate: 'std::__cxx11::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())
             ^~~~~~~~~~~~
      /usr/include/c++/8.1.1/bits/basic_string.h:437:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
             basic_string(const basic_string& __str)
             ^~~~~~~~~~~~
      

      I've included the full build log in root_build_v6.14.log

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            kgizdov Konstantin Gizdov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: