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

            Bug ID: 98136
           Summary: [aarch64] Internal compiler error with large classes
                    and virtual methods
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dark141 at gmail dot com
  Target Milestone: ---

Created attachment 49676
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49676&action=edit
Test case

Combining virtual methods and large (>16Mb) structures results in an internal
compiler error:

$ aarch64-none-linux-gnu-g++ -o test t.cpp
t.cpp: In member function ‘virtual void
Deriv::_ZThn33554440_N5Deriv9AddInCallEv()’:
t.cpp:24:1: internal compiler error: in final_scan_insn_1, at final.c:3079
   24 | }
      | ^
0x90d6cd final_scan_insn_1
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/final.c:3079
0x90d88b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/final.c:3153
0x90db65 final_1
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/final.c:2021
0xe8a720 aarch64_output_mi_thunk
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/config/aarch64/aarch64.c:6050
0x8211d8 cgraph_node::expand_thunk(bool, bool)
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:1834
0x82209a cgraph_node::assemble_thunks_and_aliases()
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2126
0x82206b cgraph_node::assemble_thunks_and_aliases()
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2144
0x822233 cgraph_node::expand()
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2263
0x82366b output_in_order
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2442
0x82366b symbol_table::compile()
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2686
0x8251e4 symbol_table::finalize_compilation_unit()
       
/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/gcc/cgraphunit.c:2865
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.linaro.org/> for instructions.
$ 

Using the ARM official 9.2 build. Also present in 10.2

Reply via email to