Internal compiler error when build modules

Bug #2036320 reported by Adam Stepniak
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-13 (Ubuntu)

Bug Description

during RTL pass: expand
In file included from /usr/include/c++/13/string:43,
                 from animal_sound.cpp:3,
                 from animal.cpp:4,
of module animal, imported at main.cpp:4:
In member function ‘constexpr _Tp* std::allocator< <template-parameter-1-1> >::allocate(std::size_t) [with _Tp = char]’,
    inlined from ‘static constexpr _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = char]’ at /usr/include/c++/13/bits/alloc_traits.h:482:28,
    inlined from ‘static constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_allocate(_Char_alloc_type&, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:126:39:
/usr/include/c++/13/bits/allocator.h:193:39: internal compiler error: in make_decl_rtl, at
  193 | if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n))
      | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0x658a99 make_decl_rtl(tree_node*)
0x14a11db expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
0x15432b8 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
0x15432b8 store_expr(tree_node*, rtx_def*, int, bool, bool)
0x153fee5 expand_assignment(tree_node*, tree_node*, bool)
0x153ef9e expand_gimple_stmt_1
0x153ef9e expand_gimple_stmt
0x1500581 expand_gimple_basic_block
0x1500581 execute
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc0RVf4z.out file, please attach this to your bugreport.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/_usr_libexec_gcc_x86_64-linux-gnu_13_cc1plus.1000.crash'
./ line 4: 252011 Segmentation fault (core dumped) ./main.exe

Revision history for this message
Adam Stepniak (adamstepniak41) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.