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

            Bug ID: 105946
           Summary: [12/13 Regression] ICE in
                    maybe_warn_pass_by_reference, at
                    tree-ssa-uninit.cc:843
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20210627 and 20210704,
with g++.dg/pr100253.C or g++.dg/tree-ssa/pr46228.C :


$ gcc-13-20220612 -c pr100253.C -O2 -fdisable-ipa-inline -W
cc1plus: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
during GIMPLE pass: uninit
In file included from .../gcc-13-20220612/include/c++/13.0.0/vector:64,
                 from pr100253.C:4:
.../gcc-13-20220612/include/c++/13.0.0/bits/stl_vector.h: In function
'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp,
_Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator)
[with _ForwardIterator = __gnu_cxx::__normal_iterator<const std::vector<T>*,
std::vector<std::vector<T> > >; _Tp = std::vector<T>; _Alloc =
std::allocator<std::vector<T> >]':
.../gcc-13-20220612/include/c++/13.0.0/bits/stl_vector.h:1611:9: internal
compiler error: Segmentation fault
 1611 |         _M_allocate_and_copy(size_type __n,
      |         ^~~~~~~~~~~~~~~~~~~~
0xdb3fff crash_signal
        ../../gcc/toplev.cc:322
0xfb5cd8 maybe_warn_pass_by_reference
        ../../gcc/tree-ssa-uninit.cc:843
0xfb5cd8 warn_uninitialized_vars
        ../../gcc/tree-ssa-uninit.cc:1050
0xfb637e execute_late_warn_uninitialized
        ../../gcc/tree-ssa-uninit.cc:1343
0xfb637e execute
        ../../gcc/tree-ssa-uninit.cc:1396

Reply via email to