https://sourceware.org/bugzilla/show_bug.cgi?id=27815

            Bug ID: 27815
           Summary: gold fails to build with latest GCC
           Product: binutils
           Version: 2.37 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: msc at linux dot ibm.com
                CC: ian at airs dot com
  Target Milestone: ---

Building gold with upstream GCC started to fail after GCC commit:

commit d96db15967e78d7cecea3b1cf3169ceb924678ac
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Apr 28 17:46:01 2021 +0100

    libstdc++: Deprecate non-standard std::pair constructors [PR 99957]

gold/gc.h is using one of the deprecated std::pair constructors to create an
empty Section_id in some cases:

binutils/gold/gc.h:250:37: error: ISO C++ says that these are ambiguous, even
though the worst conversion for the first is better than the worst conversion
for the second: [-Werror]
  250 |                 (*secvec).push_back(Section_id(NULL, 0));
      |                                     ^~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to