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

            Bug ID: 86051
           Summary: internal compiler error: in conv_function_val, at
                    fortran/trans-expr.c:3717
           Product: gcc
           Version: 7.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.bershatsky at skolkovotech dot ru
  Target Milestone: ---

Unfortunately, I have not succeeded in building short example that brokes
compiler. So, in order to reproduce the issue one should get file located in
GitHub.
https://github.com/oseledets/tt-fort/blob/658ae2d9148148fb4933de2dda2434aee0b94c39/dispmodule.f90

- GNU Fortran (GCC) 7.3.1 20180406

- x86_64 GNU/Linux

- GNU Fortran distributed with ArchLinux or Ubuntu 18.04 LTS
$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.1 20180406 (GCC)

- With fortran source located at
https://github.com/oseledets/tt-fort/blob/658ae2d9148148fb4933de2dda2434aee0b94c39/dispmodule.f90
$ gfortran -fdefault-integer-8 -ffree-line-length-none -O3 -fPIC -c
dispmodule.f90
dispmodule.f90:1248:0:

     character(widthmax_dint(x, fmt)) :: sa(size(x))

internal compiler error: in conv_function_val, at fortran/trans-expr.c:3717

- Files generated by adding -save-temps
$ cat dispmodule.s 
        .file   "dispmodule.f90"

Reply via email to