public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "latlon90180+gcc_bugzilla at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-55852-4@http.gcc.gnu.org/bugzilla/> (raw)


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)


             reply	other threads:[~2013-01-03  1:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-03  1:08 latlon90180+gcc_bugzilla at gmail dot com [this message]
2013-01-03  9:39 ` [Bug fortran/55852] " janus at gcc dot gnu.org
2013-01-03  9:43 ` [Bug fortran/55852] [4.6/4.7/4.8 regression] " janus at gcc dot gnu.org
2013-01-03 11:01 ` dominiq at lps dot ens.fr
2013-01-03 11:10 ` burnus at gcc dot gnu.org
2013-01-03 11:13 ` dominiq at lps dot ens.fr
2013-01-04 17:27 ` jakub at gcc dot gnu.org
2013-01-06 20:56 ` tkoenig at gcc dot gnu.org
2013-01-06 21:59 ` tkoenig at gcc dot gnu.org
2013-01-07 11:11 ` burnus at gcc dot gnu.org
2013-01-07 15:24 ` burnus at gcc dot gnu.org
2013-01-07 19:11 ` burnus at gcc dot gnu.org
2013-01-08 16:56 ` schwab@linux-m68k.org
2013-02-13 14:39 ` burnus at gcc dot gnu.org
2013-02-13 14:44 ` janus at gcc dot gnu.org
2013-02-13 15:09 ` burnus at gcc dot gnu.org
2013-02-13 17:51 ` burnus at gcc dot gnu.org
2013-02-13 17:52 ` burnus at gcc dot gnu.org
2013-02-13 19:21 ` latlon90180+gcc_bugzilla at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55852-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).