public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kargl at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/43928] [4.6 Regression] FAIL: gfortran.dg/array_constructor_11.f90
Date: Wed, 28 Apr 2010 23:06:00 -0000 [thread overview]
Message-ID: <20100428230622.24426.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43928-682@http.gcc.gnu.org/bugzilla/>
------- Comment #4 from kargl at gcc dot gnu dot org 2010-04-28 23:06 -------
(In reply to comment #3)
> Subject: Re: [4.6 Regression] FAIL:
> gfortran.dg/array_constructor_11.f90
>
> Looks like latent problem that we fail when optimiznig for size.
>
It appears to be an in-lining issue. This reduced case
program main
implicit none
call build (77)
contains
subroutine build (order)
integer :: order, i, j
call test (1, order, 3, (/ (i, i = 1, order, 3) /))
call test (order, 1, -3, (/ (i, i = order, 1, -3) /))
do j = 0, 1
call test (order + j, order, 5, (/ (i, i = order + j, order, 5) /))
end do
end subroutine build
subroutine test (from, to, step, values)
integer, dimension (:) :: values
integer :: from, to, step, last, i
last = 0
do i = from, to, step
last = last + 1
if (values (last) .ne. i) call abort
end do
if (size (values, dim = 1) .ne. last) call abort
end subroutine test
end program main
gives
laptop:kargl[230] gfc4x -c -g -O3 array_constructor_11.f90
array_constructor_11.f90:6:0: internal compiler error: in output_die, at
dwarf2out.c:10649
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
laptop:kargl[231] gfc4x -c -g -O3 -fno-inline array_constructor_11.f90
where the last command succeeds.
Note, if I remove any one of the calls to test() or remove either
if-statement within test(), the ICE goes away.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43928
prev parent reply other threads:[~2010-04-28 23:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 21:16 [Bug fortran/43928] New: " hjl dot tools at gmail dot com
2010-04-28 21:19 ` [Bug fortran/43928] " hjl dot tools at gmail dot com
2010-04-28 21:35 ` kargl at gcc dot gnu dot org
2010-04-28 22:20 ` hubicka at ucw dot cz
2010-04-28 23:06 ` kargl at gcc dot gnu dot org [this message]
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=20100428230622.24426.qmail@sourceware.org \
--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).