https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86660
Bug ID: 86660 Summary: libgomp.c++/for-15.C ICEs with nvptx offloading Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- I see the following ICE with libgomp.c++/for-15.C with nvptx-offloading: lto1: internal compiler error: in input_varpool_node, at lto-cgraph.c:1393 0xc1d8d5 input_varpool_node /openacc/trunk/gcc-mainline/gcc/lto-cgraph.c:1391 0xc1de1e input_cgraph_1 /openacc/trunk/gcc-mainline/gcc/lto-cgraph.c:1513 0xc1e9d5 input_symtab() /openacc/trunk/gcc-mainline/gcc/lto-cgraph.c:1798 0x79d588 read_cgraph_and_symbols /openacc/trunk/gcc-mainline/gcc/lto/lto.c:2917 0x79e9b8 lto_main() /openacc/trunk/gcc-mainline/gcc/lto/lto.c:3400 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. mkoffload: fatal error: x86_64-none-linux-gnu-accel-nvptx-none-gcc returned 1 exit status compilation terminated. lto-wrapper: fatal error: /openacc/trunk/install/libexec/gcc/x86_64-none-linux-gnu/9.0.0//accel/nvptx-none/mkoffload returned 1 exit status compilation terminated. /openacc/trunk/install/lib/gcc/x86_64-none-linux-gnu/9.0.0/../../../../x86_64-none-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status I think I've seen similar problems in OpenACC, so this might be fixed in og8 already.