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

            Bug ID: 68933
           Summary: ICE when mixing "-fprofile-arcs -ftest-coverage" and
                    "-fcoarray=lib"
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fanfarillo.gcc at gmail dot com
  Target Milestone: ---

Created attachment 37046
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37046&action=edit
coarray-based distributed transpose

Compiling the attached file with the following command:

gfortran -fcoarray=lib -fprofile-arcs -ftest-coverage
coarray_distributed_transpose.F90 -c

generates an ICE:

coarray_distributed_transpose.F90:107:0:

       use run_size


internal compiler error: Segmentation fault
0xb5d8df crash_signal
        ../../gcc/toplev.c:334
0x7b5baf coverage_checksum_string
        ../../gcc/coverage.c:500
0x7b6e36 coverage_compute_profile_id(cgraph_node*)
        ../../gcc/coverage.c:583
0xe1a906 init_node_map(bool)
        ../../gcc/value-prof.c:1240
0xc39b4e tree_profiling
        ../../gcc/tree-profile.c:516
0xc39b4e execute
        ../../gcc/tree-profile.c:642
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions


Using -fcoarray=single instead of -fcoarray=lib works fine.

Can it be related to bug 46989 

The bug has been found by Zaak Beekman.


The system is a x86_64-pc-linux-gnu.

gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/alex/Downloads/gcc/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/home/alex/Downloads/gcc
--enable-languages=c,c++,fortran --disable-multilib --disable-libgcj
--disable-bootstrap
Thread model: posix
gcc version 6.0.0 20151210 (experimental) (GCC)

Reply via email to