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

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 62676
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62676&action=edit
preprocessed source

Repeated on several x86_654 darwin platform versions

A bit more detail on the error:

In destructor ‘Rust::Fmt::ffi::FFIVec<T>::~FFIVec() [with T =
Rust::Fmt::ffi::Piece]’,
    inlined from ‘std::pair<std::__cxx11::basic_string<char>,
Rust::Fmt::ffi::FFIVec<Rust::Fmt::ffi::Piece> >::~pair()’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/stl_pair.h:302:12,
    inlined from ‘constexpr void std::_Destroy(_Tp*) [with _Tp =
pair<__cxx11::basic_string<char>, Rust::Fmt::ffi::FFIVec<Rust::Fmt::ffi::Piece>
>]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/stl_construct.h:166:22,
    inlined from ‘static void std::allocator_traits<std::allocator<void>
>::destroy(allocator_type&, _Up*) [with _Up =
std::pair<std::__cxx11::basic_string<char>,
Rust::Fmt::ffi::FFIVec<Rust::Fmt::ffi::Piece> >]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/alloc_traits.h:819:17,
    inlined from ‘void std::_Sp_counted_ptr_inplace<_Tp, _Alloc,
_Lp>::_M_dispose() [with _Tp = std::pair<std::__cxx11::basic_string<char>,
Rust::Fmt::ffi::FFIVec<Rust::Fmt::ffi::Piece> >; _Alloc = std::allocator<void>;
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr_base.h:675:35,
    inlined from ‘void std::_Sp_counted_base<_Lp>::_M_release() [with
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr_base.h:423:18,
    inlined from ‘void std::_Sp_counted_base<_Lp>::_M_release() [with
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr_base.h:392:5,
    inlined from ‘std::__shared_count<_Lp>::~__shared_count() [with
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr_base.h:1129:21,
    inlined from ‘std::__shared_ptr<_Tp, _Lp>::~__shared_ptr() [with _Tp =
Rust::Token; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr_base.h:1603:7,
    inlined from ‘std::shared_ptr<Rust::Token>::~shared_ptr()’ at
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr.h:175:11,
    inlined from ‘virtual void
Rust::AST::TokenCollector::visit(Rust::AST::QualifiedPathInType&)’ at
/src-local/gcc-master/gcc/rust/ast/rust-ast-collector.cc:762:31:
/src-local/gcc-master/gcc/rust/ast/rust-fmt.h:68:9: error: array subscript 2 is
outside array bounds of ‘void [24]’ [-Werror=array-bounds=]
   68 |     if (cap)
      |         ^~~
In file included from
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/bits/shared_ptr.h:53,
                 from
/scratch/14-son/gcc-master/prev-x86_64-apple-darwin23/libstdc++-v3/include/memory:82,
                 from /src-local/gcc-master/gcc/rust/rust-system.h:44,
                 from /src-local/gcc-master/gcc/rust/lex/rust-token.h:22,
                 from
/src-local/gcc-master/gcc/rust/ast/rust-ast-collector.h:22:

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

Reply via email to