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

--- Comment #3 from homgran <matt at gneilson dot plus.com> ---
Interesting... I've just tested Janus' reduced/modified version with "GNU
Fortran (GCC) 4.8.1 20130404 (prerelease)", and it does indeed compile cleanly.
However, my sample code ('test.f90', attached to the original post) produces an
ICE when attempting to compile with "GNU Fortran (GCC) 4.8.1 20130404
(prerelease)".

### Beginning of Terminal output ###

matt$ gfortran -v -save-temps -o test test.f90 
Driving: gfortran -mmacosx-version-min=10.8.3 -v -save-temps -o test test.f90
-l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.3.0/4.8.1/lto-wrapper
Target: x86_64-apple-darwin12.3.0
Configured with: ../gcc-4.8-20130404/configure --enable-languages=fortran,c++
Thread model: posix
gcc version 4.8.1 20130404 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.8.3' '-v' '-save-temps' '-o'
'test' '-shared-libgcc' '-mtune=core2'
 /usr/local/libexec/gcc/x86_64-apple-darwin12.3.0/4.8.1/f951 test.f90 -fPIC
-quiet -dumpbase test.f90 -mmacosx-version-min=10.8.3 -mtune=core2 -auxbase
test -version -fintrinsic-modules-path
/usr/local/lib/gcc/x86_64-apple-darwin12.3.0/4.8.1/finclude -o test.s
GNU Fortran (GCC) version 4.8.1 20130404 (prerelease)
(x86_64-apple-darwin12.3.0)
    compiled by GNU C version 4.8.1 20130404 (prerelease), GMP version 4.3.1,
MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (GCC) version 4.8.1 20130404 (prerelease)
(x86_64-apple-darwin12.3.0)
    compiled by GNU C version 4.8.1 20130404 (prerelease), GMP version 4.3.1,
MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
test.f90: In function ‘bug’:
test.f90:48:0: internal compiler error: in gfc_conv_component_ref, at
fortran/trans-expr.c:1553
       e%info => p      ! line "C"
 ^

test.f90:48:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort trap: 6

### End of Terminal output ###

Reply via email to