public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
@ 2010-01-23 17:40 burnus at gcc dot gnu dot org
2010-02-12 5:07 ` [Bug fortran/42851] " jvdelisle at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-01-23 17:40 UTC (permalink / raw)
To: gcc-bugs
Found while looking again as PR 39304. The following program causes an ICE. It
might well be only fixable with the new array descriptor.
The program works with 4.1 and 4.2 (which might well be only by chance) but
fails with 4.3/4.4/4.5 with:
test.f90: In function 'func':
test.f90:7:0: internal compiler error: Segmentation fault
Program received signal SIGSEGV, Segmentation fault.
0x000000000055d935 in gfc_trans_pointer_assignment (expr1=0x137b4e0,
expr2=0x137b970) at /home/tob/projects/gcc/gcc/fortran/trans-expr.c:4676
4676 gfc_add_modify (&lse.post, GFC_DECL_SPAN(decl), tmp);
module m
implicit none
type t
real :: a(3)
end type t
contains
function func(x,i)
type(t), target :: x(:)
integer :: i
real, dimension(:), pointer :: func
func => x%a(i)
end function func
end module m
use m
type(t) :: mt(3)
real :: res(3)
mt = t(1.0)
res = matmul(func(mt,1), reshape( (/1,2,3,4,5,6,7,8,9/), (/3,3 /) ))
if (res(1) /= 6.0 .and. res(2) /= 15.0 .and. res(3) /= 24.0) then
print *, res
stop 'error'
end if
end
--
Summary: [4.3/4.4/4.5] ICE (segfault) at
gfc_trans_pointer_assignment for subpointer
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 42742
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42851] [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
@ 2010-02-12 5:07 ` jvdelisle at gcc dot gnu dot org
2010-02-16 10:38 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2010-02-12 5:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2010-02-12 05:07 -------
Might as well confirm this one.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-02-12 05:07:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42851] [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
2010-02-12 5:07 ` [Bug fortran/42851] " jvdelisle at gcc dot gnu dot org
@ 2010-02-16 10:38 ` rguenth at gcc dot gnu dot org
2010-02-17 17:33 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-16 10:38 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42851] [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
2010-02-12 5:07 ` [Bug fortran/42851] " jvdelisle at gcc dot gnu dot org
2010-02-16 10:38 ` rguenth at gcc dot gnu dot org
@ 2010-02-17 17:33 ` mmitchel at gcc dot gnu dot org
2010-05-18 22:10 ` [Bug fortran/42851] " dfranke at gcc dot gnu dot org
2010-05-18 22:22 ` dfranke at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2010-02-17 17:33 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42851] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-02-17 17:33 ` mmitchel at gcc dot gnu dot org
@ 2010-05-18 22:10 ` dfranke at gcc dot gnu dot org
2010-05-18 22:22 ` dfranke at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-18 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dfranke at gcc dot gnu dot org 2010-05-18 22:09 -------
Reduced testcase:
type t
real :: a(3)
end type t
contains
function func(x)
type(t), target :: x(:)
real, dimension(:), pointer :: func
func => x%a(1)
end function func
end
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
Known to fail| |4.4.3 4.5.1 4.6.0
Priority|P5 |P3
Summary|[4.3/4.4/4.5] ICE (segfault)|ICE (segfault) at
|at |gfc_trans_pointer_assignment
|gfc_trans_pointer_assignment|for subpointer
|for subpointer |
Target Milestone|4.3.5 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42851] ICE (segfault) at gfc_trans_pointer_assignment for subpointer
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-05-18 22:10 ` [Bug fortran/42851] " dfranke at gcc dot gnu dot org
@ 2010-05-18 22:22 ` dfranke at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-18 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dfranke at gcc dot gnu dot org 2010-05-18 22:22 -------
Roughly the same testcase, same backtrace.
*** This bug has been marked as a duplicate of 34640 ***
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42851
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-18 22:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-23 17:40 [Bug fortran/42851] New: [4.3/4.4/4.5] ICE (segfault) at gfc_trans_pointer_assignment for subpointer burnus at gcc dot gnu dot org
2010-02-12 5:07 ` [Bug fortran/42851] " jvdelisle at gcc dot gnu dot org
2010-02-16 10:38 ` rguenth at gcc dot gnu dot org
2010-02-17 17:33 ` mmitchel at gcc dot gnu dot org
2010-05-18 22:10 ` [Bug fortran/42851] " dfranke at gcc dot gnu dot org
2010-05-18 22:22 ` dfranke at gcc dot gnu dot org
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).