[Bug fortran/61406] New: ICE on ASSOCIATE construct to literal array expression

adam at aphirst dot karoo.co.uk gcc-bugzilla@gcc.gnu.org
Tue Jun 3 21:45:00 GMT 2014


            Bug ID: 61406
           Summary: ICE on ASSOCIATE construct to literal array expression
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adam at aphirst dot karoo.co.uk

Created attachment 32885
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32885&action=edit
demonstration of ICE for ASSOCIATE with array literal

Association of a name to a literal array expression (see attached test case)
results in an ICE.

I'm sure that this used to work in GCC 4.8 (at least, it seems to in the
mingw32 setup of 4.8 that I have at work, and on a friend's 4.6), but not here
in 4.9.0.

Compiled using `gfortran -Wall -Wextra -std=f2008`. No optimisations.

Arch Linux x86_64

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-4.9-20140521/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 --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--enable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.0 20140521 (prerelease) (GCC)

More information about the Gcc-bugs mailing list