https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110905

--- Comment #2 from danakj at orodu dot net ---
Ah ok. Here's a big reproduction: https://godbolt.org/z/Kj7Tcd6P4

/opt/compiler-explorer/gcc-trunk-20230804/include/c++/14.0.0/bits/stl_construct.h:97:14:
  in 'constexpr' expansion of
'((sus::containers::VecIntoIter<sus::num::i32>*)<anonymous>)->sus::containers::VecIntoIter<sus::num::i32>::VecIntoIter((*
& std::forward<sus::containers::VecIntoIter<sus::num::i32> >((* & __args#0))))'
<source>:32895:22: error: use of deleted function
'sus::option::__private::Storage<sus::containers::VecIntoIter<sus::num::i32>,
false>::<unnamed union>::<constructor>()'
32895 | struct [[nodiscard]] VecIntoIter final
      |                      ^~~~~~~~~~~
<source>:3015:9: note:
'sus::option::__private::Storage<sus::containers::VecIntoIter<sus::num::i32>,
false>::<unnamed union>::<constructor>()' is implicitly deleted because the
default definition would be ill-formed:
 3015 |   union {
      |         ^
<source>:3015:9: error: no matching function for call to
'sus::containers::VecIntoIter<sus::num::i32>::VecIntoIter()'
<source>:32953:13: note: candidate: 'constexpr
sus::containers::VecIntoIter<ItemT>::VecIntoIter(sus::containers::Vec<ItemT>&&,
sus::num::usize, sus::num::usize) [with ItemT = sus::num::i32]'
32953 |   constexpr VecIntoIter(Vec<Item>&& vec, usize front, usize back)
noexcept
      |             ^~~~~~~~~~~
<source>:32953:13: note:   candidate expects 3 arguments, 0 provided
<source>:32951:13: note: candidate: 'constexpr
sus::containers::VecIntoIter<ItemT>::VecIntoIter(sus::containers::Vec<ItemT>&&)
[with ItemT = sus::num::i32]'
32951 |   constexpr VecIntoIter(Vec<Item>&& vec) noexcept :
vec_(::sus::move(vec)) {}
      |             ^~~~~~~~~~~
<source>:32951:13: note:   candidate expects 1 argument, 0 provided
<source>:32895:22: note: candidate: 'constexpr
sus::containers::VecIntoIter<sus::num::i32>::VecIntoIter(sus::containers::VecIntoIter<sus::num::i32>&&)'
32895 | struct [[nodiscard]] VecIntoIter final
      |                      ^~~~~~~~~~~
<source>:32895:22: note:   candidate expects 1 argument, 0 provided
Compiler returned: 1


I will try to shrink it now.

Reply via email to