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

            Bug ID: 93678
           Summary: ICE in 9.2/9.2.1 not happening in previous gfortran
                    versions
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mail.luis at web dot de
  Target Milestone: ---

Created attachment 47818
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47818&action=edit
Fortran source file

The reduced code snippet has been working fine for a long time
gcc-6 up to gcc-9.1 but is broken know with 9.2 and 9.2.1.
The problem is reproducable on Darwin and Linux. It does compile
fine with intel-14 up to intel-19, pgi-17 up to pgi-19, nag 6.0 up to nag-6.2
cray ftn 8.4 to 8.7, and latest NEC Fortran.

___________________________________________________________________________________
Exact version of GCC

% gfortran --version
GNU Fortran (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

___________________________________________________________________________________
System type

% uname -a
Linux chulung 5.3.0-29-generic #31-Ubuntu SMP Fri Jan 17 17:27:26 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan

___________________________________________________________________________________
Options given when GCC was configured/built

% gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.2.1-9ubuntu2'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-9
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib
--with-target-system-zlib=auto --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2) 

___________________________________________________________________________________
Complete command line that triggers the bug

% gfortran -c -Wall -Wextra regression-or-bug.f90

___________________________________________________________________________________
Compiler output (error messages, warnings, etc.)

regression-or-bug.f90:601:0:

  601 |      val = TRANSFER(me%unpackBytes(TRANSFER( val, characterArrayMold)),
 val)
      | 
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.

Reply via email to