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

            Bug ID: 122939
           Summary: new tests omp-4_a.C and omp-4_b.C fail to compile
           Product: gcc
           Version: 16.0
               URL: https://linaro.atlassian.net/browse/GNU-1768
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: nshead at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64 x86_64

Seen on aarch64, but there were also reports on x86_64: since these new tests
were introduced (r16-5727-g858f30072783), they are causing an ICE on aarch64:
/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/gcc/testsuite/g++.dg/modules/omp-4_a.C:5:8:
internal compiler error: in write_function_def, at cp/module.cc:12937
0x26dc827 internal_error(char const*, ...)
        ../../../../../../gcc/gcc/diagnostic-global-context.cc:787
0x83c303 fancy_abort(char const*, int, char const*)
        ../../../../../../gcc/gcc/diagnostics/context.cc:1805
0xa3862b write_function_def
        ../../../../../../gcc/gcc/cp/module.cc:12937
0xa3862b write_definition
        ../../../../../../gcc/gcc/cp/module.cc:13816
0xa2f243 decl_value
        ../../../../../../gcc/gcc/cp/module.cc:8567
0xa30f7f decl_node
        ../../../../../../gcc/gcc/cp/module.cc:9421
0xa320f7 tree_node
        ../../../../../../gcc/gcc/cp/module.cc:10237
0xa35c73 core_vals
        ../../../../../../gcc/gcc/cp/module.cc:6660
0xa35c73 tree_node_vals
        ../../../../../../gcc/gcc/cp/module.cc:7781
0xa31fd3 tree_value
        ../../../../../../gcc/gcc/cp/module.cc:9841
0xa31fd3 tree_node
        ../../../../../../gcc/gcc/cp/module.cc:10242
0xa37bdf write_function_def
        ../../../../../../gcc/gcc/cp/module.cc:12907
0xa37bdf write_definition
        ../../../../../../gcc/gcc/cp/module.cc:13816
0xa39ab7 module_state::write_cluster(elf_out*, depset**, unsigned int,
depset::hash&, unsigned int*, unsigned int*)
        ../../../../../../gcc/gcc/cp/module.cc:17100
0xa3c52b module_state::write_begin(elf_out*, cpp_reader*, module_state_config&,
unsigned int&)
        ../../../../../../gcc/gcc/cp/module.cc:20750
0xa3d4f3 finish_module_processing(cpp_reader*)
        ../../../../../../gcc/gcc/cp/module.cc:23292
0x993b2f c_parse_final_cleanups()
        ../../../../../../gcc/gcc/cp/decl2.cc:5827
0xcbcedf c_common_parse_file()
        ../../../../../../gcc/gcc/c-family/c-opts.cc:1440
Please submit a full bug report, with preprocessed source (by using
-freport-bug).




In addition, omp-4_b.C is failing with:
/gcc/testsuite/g++.dg/modules/omp-4_b.C:4:1:
p1: error: failed to read compiled module: No such file or directory
p1: note: compiled module file is 'gcm.cache/p1.gcm'
p1: note: imports must be built before being imported
p1: fatal error: returning to the gate for a mechanical issue
compilation terminated.
compiler exited with status 1

Reply via email to