<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63765>63765</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang trunk/17.x compile failures on qtwebengine/chromium
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kraj
      </td>
    </tr>
</table>

<pre>
    Attached test case from chromium version vendored in qtwebengine which fails to compile with clang trunk but works ok with clang 16
```
clang++ default_pref_store_libstdc++.ii  -std=c++20 -c
```

works ( it uses libstdc++ headers )

```
clang++ default_pref_store.ii  -std=c++20 -c
```

fails, it uses headers from libc++ from clang 17.0.0, I clang16 is used with libc++ it works ok. So it seems to be new.
here is the error.

```
In file included from ../../../../../git/src/3rdparty/chromium/components/prefs/default_pref_store.h:8:
In file included from ../../../../../recipe-sysroot/usr/include/c++/v1/memory:896:
In file included from ../../../../../recipe-sysroot/usr/include/c++/v1/__memory/ranges_uninitialized_algorithms.h:22:
In file included from ../../../../../recipe-sysroot/usr/include/c++/v1/__memory/uninitialized_algorithms.h:13:
In file included from ../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12:
In file included from ../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:18:
../../../../../recipe-sysroot/usr/include/c++/v1/__string/constexpr_c_functions.h:149:29: error: overload resolution selected deleted operator '='
  149 | __dest[__count - 1] = __src[__count - 1];
      | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:66:8: note: in instantiation of function template specialization 'std::__constexpr_memmove<base::internal::UncheckedObserverAdapter, base::internal::UncheckedObserverAdapter, 0>' requested here
   66 | std::__constexpr_memmove(__result, __first, __element_count(__n));
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/move.h:105:17: note: in instantiation of function template specialization 'std::__copy_trivial_impl<base::internal::UncheckedObserverAdapter, base::internal::UncheckedObserverAdapter>' requested here
  105 | return std::__copy_trivial_impl(__first, __last, __result);
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:109:19: note: in instantiation of function template specialization 'std::__move_trivial::operator()<base::internal::UncheckedObserverAdapter, base::internal::UncheckedObserverAdapter, 0>' requested here
  109 | auto __result = _Algorithm()(std::move(__range.first), std::move(__range.second), std::__unwrap_iter(__out_first));
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:133:15: note: in instantiation of function template specialization 'std::__unwrap_and_dispatch<std::__overload<std::__move_loop<std::_ClassicAlgPolicy>, std::__move_trivial>, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *, 0>' requested here
  133 | return std::__unwrap_and_dispatch<_Algorithm>(std::move(__first), std::move(__last), std::move(__out_first));
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/move.h:112:15: note: in instantiation of function template specialization 'std::__dispatch_copy_or_move<std::_ClassicAlgPolicy, std::__move_loop<std::_ClassicAlgPolicy>, std::__move_trivial, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *>' requested here
  112 | return std::__dispatch_copy_or_move<_AlgPolicy, __move_loop<_AlgPolicy>, __move_trivial>(
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/__algorithm/move.h:122:15: note: in instantiation of function template specialization 'std::__move<std::_ClassicAlgPolicy, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *>' requested here
  122 | return std::__move<_ClassicAlgPolicy>(std::move(__first), std::move(__last), std::move(__result)).second;
      | ^
../../../../../recipe-sysroot/usr/include/c++/v1/vector:1716:38: note: in instantiation of function template specialization 'std::move<base::internal::UncheckedObserverAdapter *, base::internal::UncheckedObserverAdapter *>' requested here
 1716 | this->__destruct_at_end(std::move(__p + (__last - __first), this->__end_, __p));
      | ^
../../../../../git/src/3rdparty/chromium/base/observer_list.h:335:16: note: in instantiation of member function 'std::vector<base::internal::UncheckedObserverAdapter>::erase' requested here
  335 |     observers_.erase(
      | ^
../../../../../git/src/3rdparty/chromium/base/observer_list.h:262:7: note: in instantiation of member function 'base::ObserverList<PrefStore::Observer, true, true, base::internal::UncheckedObserverAdapter>::Compact' requested here
  262 | Compact();
      | ^
../../../../../git/src/3rdparty/chromium/components/prefs/default_pref_store.cc:16:19: note: in instantiation of member function 'base::ObserverList<PrefStore::Observer, true, true, base::internal::UncheckedObserverAdapter>::~ObserverList' requested here
 16 | DefaultPrefStore::DefaultPrefStore() {}
      | ^
../../../../../git/src/3rdparty/chromium/base/observer_list_internal.h:32:29: note: candidate function has been explicitly deleted
   32 | UncheckedObserverAdapter& operator=(const UncheckedObserverAdapter&) = delete;
      | ^
../../../../../git/src/3rdparty/chromium/base/observer_list_internal.h:34:29: note: candidate function not viable: expects an rvalue for 1st argument
 149 |   UncheckedObserverAdapter& operator=(UncheckedObserverAdapter&& other) =
      |                             ^
1 error generated.
```

[test.zip](https://github.com/llvm/llvm-project/files/11995809/test.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUWd9vo7ga_Wucl0-NwC4kPOQhbRpppSvdlVb32XLgS_DW2Kxt0uk-7N9-ZRPyo5OkM51OO4siIPjX8TnHH7YRzsmNRpyR7I5ki5HofG3s7NGKP0crUz3P5t6LssYKPDoPpXAIa2saKGtrGtk1sEXrpNGwRV0ZixVIDX_5J1yh3kiN8FTLsoa1kMqBN1CappUK4Un6Gkol9Aa87fQjrDoPT8Y-OjCPx6lpTpIFSeYkT3a_-DcmEnpH6B1UuBad8ry1uObOG4tcyZXzVdlnGEsJcON8Rdhi94gmcFOerbg_90gInYL00Dl0cFIj1CgqtCFHcVzsu0C-AVakkdD7PaoBR9RE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