https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Thomas Schwinge from comment #0) > ... starting with r254437 "Instrument function exit with > __builtin_unreachable in C++". > > Program received signal SIGSEGV, Segmentation fault. > input_offload_tables (do_force_output=true) at > [...]/source-gcc/gcc/lto-cgraph.c:1942 > 1942 varpool_node::get (var_decl)->force_output = 1; > (gdb) bt > #0 input_offload_tables (do_force_output=true) at > [...]/source-gcc/gcc/lto-cgraph.c:1942 > #1 0x00000000005a0927 in read_cgraph_and_symbols (fnames=<optimized > out>, nfiles=<optimized out>) at [...]/source-gcc/gcc/lto/lto.c:2863 > #2 lto_main () at [...]/source-gcc/gcc/lto/lto.c:3314 > #3 0x0000000000a7f63f in compile_file () at > [...]/source-gcc/gcc/toplev.c:455 > #4 0x000000000056ef20 in do_compile () at > [...]/source-gcc/gcc/toplev.c:2059 > #5 toplev::main (this=this@entry=0x7fffffffcfb0, argc=argc@entry=15, > argv=0x17908e0, argv@entry=0x7fffffffd0b8) at > [...]/source-gcc/gcc/toplev.c:2194 > #6 0x0000000000571457 in main (argc=15, argv=0x7fffffffd0b8) at > [...]/source-gcc/gcc/main.c:39 > > Obviously, that test case has a "-Wreturn-type mismatch" (which is not > diagnosed for C++; see reduced PR83045), and fixing that cures this nvptx > offloading ICE. Hello. Can you please provide steps to reproduce this?