<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - error: no matching function for call to object of type '(lambda at /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'"
   href="https://bugs.llvm.org/show_bug.cgi?id=52380">52380</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error: no matching function for call to object of type '(lambda at /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: AMDGPU
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mliska@suse.cz
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>One can't build LLVM 13 with the current GCC master due to:

[ 3836s] /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/stage1/bin/clang++
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/build/lib/Target/AMDGPU
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/build/include
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/include -fomit-frame-pointer -O3
-Wall -D_FORTIFY_SOURCE=0 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-Wno-error  -DNDEBUG -fPIC -fno-semantic-interposition
-fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wno-noexcept-type
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override
-Wstring-conversion -Wmisleading-indentation -fdiagnostics-color
-ffunction-sections -fdata-sections -flto=thin -g1 -fvisibility=hidden 
-fno-exceptions -std=c++14 -MD -MT
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o
-MF
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o.d
-o
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o
-c
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:60:
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/AMDGPU.h:13:
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/include/llvm/IR/PassManager.h:57:
[ 3836s] In file included from
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/list:63:
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/stl_list.h:179:13:
error: no matching function for call to object of type '(lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'
[ 3836s]           { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); }
[ 3836s]                    ^~~~~~
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/stl_list.h:203:12:
note: in instantiation of member function
'std::__detail::_Scratch_list::_Ptr_cmp<std::_List_const_iterator<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>, (lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>::operator()'
requested here
[ 3836s]               if (__comp(__first2, __first1))
[ 3836s]                   ^
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/list.tcc:640:20:
note: in instantiation of function template specialization
'std::__detail::_Scratch_list::merge<std::__detail::_Scratch_list::_Ptr_cmp<std::_List_const_iterator<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>, (lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>>'
requested here
[ 3836s]                       __counter->merge(__carry, __ptr_comp);
[ 3836s]                                  ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2050:15:
note: in instantiation of function template specialization
'std::list<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>::sort<(lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>'
requested here
[ 3836s]     MergeList.sort(
[ 3836s]               ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9:
note: candidate function not viable: 2nd argument ('const (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo') would lose const qualifier
[ 3836s]         [] (const CombineInfo &A, CombineInfo &B) {
[ 3836s]         ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9:
note: conversion candidate of type 'bool (*)(const (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo &, (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo &)'
[ 3836s] 1 error generated.

The code is defined here:
<a href="https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp#L2068">https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp#L2068</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>