Internal compiler error when build modules

Bug #2036320 reported by Adam Stepniak
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc (Fedora)
New
Undecided
Unassigned
gcc-13 (Ubuntu)
Confirmed
Undecided
Unassigned

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 varasm.cc:1442
  193 | if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n))
      | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0x658a99 make_decl_rtl(tree_node*)
 ../../src/gcc/varasm.cc:1442
0x14a11db expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
 ../../src/gcc/expr.cc:10863
0x15432b8 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
 ../../src/gcc/expr.cc:9000
0x15432b8 store_expr(tree_node*, rtx_def*, int, bool, bool)
 ../../src/gcc/expr.cc:6330
0x153fee5 expand_assignment(tree_node*, tree_node*, bool)
 ../../src/gcc/expr.cc:6048
0x153ef9e expand_gimple_stmt_1
 ../../src/gcc/cfgexpand.cc:3946
0x153ef9e expand_gimple_stmt
 ../../src/gcc/cfgexpand.cc:4044
0x1500581 expand_gimple_basic_block
 ../../src/gcc/cfgexpand.cc:6106
0x1500581 execute
 ../../src/gcc/cfgexpand.cc:6841
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'
./run.sh: line 4: 252011 Segmentation fault (core dumped) ./main.exe

Revision history for this message
Adam Stepniak (adamstepniak41) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-13 (Ubuntu):
status: New → Confirmed
Revision history for this message
TÖRÖK Attila (torokati44) wrote (last edit ):
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.