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

            Bug ID: 112475
           Summary: [UBSAN][OpenMP] ICE during GIMPLE pass: sanopt in
                    output_operand: invalid expression as operand
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

ICE with when compiled with
  g++ -fsanitize=undefined -fopenmp  -I ompvv
for the SOLLVE_VV, https://github.com/SOLLVE/sollve_vv/ , testcases:

  tests/5.2/unified_shared_mem/test_target_PureVirDestr.cpp
  tests/5.0/application_kernels/declare_target_base_and_derived_class.cpp

[The ICE is not new, I see it also with GCC 8,9,10,11,12,13.]


internal compiler error: output_operand: invalid expression as operand

0xf186f3 output_operand_lossage(char const*, ...)
        ../../repos/gcc-trunk-commit/gcc/final.cc:3190
0x16886db assemble_integer_with_op(char const*, rtx_def*)
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:2845
0x16886db default_assemble_integer(rtx_def*, unsigned int, int)
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:2861
0x168876d assemble_integer(rtx_def*, unsigned int, unsigned int, int)
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:2877
0x1692c12 output_constant
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:5302
0x1691902 output_constructor_regular_field
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:5612
0x1691902 output_constructor
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:5878
0x1693aa5 assemble_variable_contents
        ../../repos/gcc-trunk-commit/gcc/varasm.cc:2231

Reply via email to