From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10728 invoked by alias); 3 Jan 2013 01:08:31 -0000 Received: (qmail 9577 invoked by uid 48); 3 Jan 2013 01:07:51 -0000 From: "latlon90180+gcc_bugzilla at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55852] New: internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647 Date: Thu, 03 Jan 2013 01:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: latlon90180+gcc_bugzilla at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00127.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: latlon90180+gcc_bugzilla@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)