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

--- Comment #140 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Created attachment 58860
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58860&action=edit
testcase for attachment  58831,  58832,  58833,  58836

The attached test case, when compiled with 'sh-elf-gcc -O2 -m4-single -mlra' on
current development branch (GCC 15) fails with the following ICE:

during RTL pass: mach
genmenu.cpp: In member function 'void
MyMenu::preparePopulate(std::filesystem::__cxx11::path, bool, bool)':
genmenu.cpp:277:1: internal compiler error: in sh_reorg, at
config/sh/sh.cc:6235
  277 |     };
      | ^
0x1f17d0e internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:491
0x96a34f fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1772
0x8ace30 sh_reorg
        ../../gcc/gcc/config/sh/sh.cc:6235
0x11e8579 execute
        ../../gcc/gcc/reorg.cc:3932


The issue goes away after applying attachment 58831, 58832, 58836.

(Sorry, it's c++ code that uses the std lib. I gave up trying to reduce it)

Reply via email to