http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55852
Bug #: 55852 Summary: internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: latlon90180+gcc_bugzi...@gmail.com Compilation of the following program causes internal compiler error: !----------------------------------- program bug implicit none Real, allocatable:: a(:) allocate(a(1:3)) print*, ubound((a), 1) ! Bad ! print*, ubound(a, 1) ! OK ! print*, lbound((a), 1) ! OK ! print*, lbound(a, 1) ! OK stop end program bug !------------------------------------ $ gfortran-mp-4.8 -Wall -Wextra bug.F90 f951: internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647 f951: internal compiler error: Abort trap gfortran-mp-4.8: internal compiler error: Abort trap (program f951) Abort trap $ gfortran-mp-4.8 -v Using built-in specs. COLLECT_GCC=gfortran-mp-4.8 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.8.0/lto-wrapper Target: x86_64-apple-darwin10 Configured with: ../gcc-4.8-20121223/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8-20121223_0' Thread model: posix gcc version 4.8.0 20121223 (experimental) (MacPorts gcc48 4.8-20121223_0)