public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
@ 2004-09-29 21:46 schnetter at aei dot mpg dot de
2004-09-29 21:47 ` [Bug fortran/17740] " schnetter at aei dot mpg dot de
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 21:46 UTC (permalink / raw)
To: gcc-bugs
With
GNU Fortran 95 (GCC 4.0.0 20040929 (experimental))
I receive the error
$ ~/gcc/bin/gfortran ih_3determinant.f90
ih_3determinant.f90: In function 'ih_3determinant':
ih_3determinant.f90:23: internal compiler error: in
gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
for the attached source code.
--
Summary: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-
expr.c:2011
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/17740] ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
@ 2004-09-29 21:47 ` schnetter at aei dot mpg dot de
2004-09-30 15:32 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2004-09-29 21:47 -------
Created an attachment (id=7243)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7243&action=view)
failing source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/17740] ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
2004-09-29 21:47 ` [Bug fortran/17740] " schnetter at aei dot mpg dot de
@ 2004-09-30 15:32 ` reichelt at gcc dot gnu dot org
2005-08-23 19:58 ` erik dot edelmann at iki dot fi
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-30 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-30 15:32 -------
Confirmed. Here's a reduced testcase:
=========================================
module FOO
interface BAR
module procedure BAR2
end interface
contains
elemental integer function BAR2(X)
integer, intent(in) :: X
BAR2 = 0
end function
subroutine BAZ
integer :: Y(3), Z(3)
Z = BAR(Y)
end subroutine
end module
=========================================
With mainline I get:
f951: ../../gcc/gcc/fortran/trans-expr.c:1776: gfc_trans_arrayfunc_assign:
Assertion `expr2->value.function.isym || (gfc_return_by_reference
(expr2->symtree->n.sym) && expr2->symtree->n.sym->result->attr.dimension)'
failed.
PR17740.f90: In function `baz':
PR17740.f90:12: internal compiler error: Aborted
Btw, ifort 8.1 segfaults on this code snippet.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2004-09-30 15:32:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/17740] ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
2004-09-29 21:47 ` [Bug fortran/17740] " schnetter at aei dot mpg dot de
2004-09-30 15:32 ` reichelt at gcc dot gnu dot org
@ 2005-08-23 19:58 ` erik dot edelmann at iki dot fi
2005-09-13 21:46 ` cvs-commit at gcc dot gnu dot org
2005-09-14 6:31 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: erik dot edelmann at iki dot fi @ 2005-08-23 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From erik dot edelmann at iki dot fi 2005-08-23 19:54 -------
A patch for this bug has been posted to the mailing list:
http://gcc.gnu.org/ml/fortran/2005-08/msg00406.html
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |erik dot edelmann at iki dot
| |fi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/17740] ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
` (2 preceding siblings ...)
2005-08-23 19:58 ` erik dot edelmann at iki dot fi
@ 2005-09-13 21:46 ` cvs-commit at gcc dot gnu dot org
2005-09-14 6:31 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-13 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-13 21:46 -------
Subject: Bug 17740
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2005-09-13 21:46:04
Modified files:
gcc/fortran : ChangeLog trans-expr.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: generic_4.f90
Log message:
2005-09-13 Erik Edelmann <erik.edelmann@iki.fi>
fortran/
PR fortran/17740
* trans-expr.c (gfc_trans_arrayfunc_assign): Check value
of attr.elemental for specific function instead of generic name.
testsuite/
PR fortran/17740
* gfortran.dg/generic_4.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.552&r2=1.553
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.63&r2=1.64
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6058&r2=1.6059
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/generic_4.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/17740] ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
` (3 preceding siblings ...)
2005-09-13 21:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-14 6:31 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-14 6:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-14 06:31 -------
Fixed on mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17740
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <bug-17740-7427@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2005-10-23 20:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 21:46 [Bug fortran/17740] New: ICE in gfc_trans_arrayfunc_assign, at fortran/trans-expr.c:2011 schnetter at aei dot mpg dot de
2004-09-29 21:47 ` [Bug fortran/17740] " schnetter at aei dot mpg dot de
2004-09-30 15:32 ` reichelt at gcc dot gnu dot org
2005-08-23 19:58 ` erik dot edelmann at iki dot fi
2005-09-13 21:46 ` cvs-commit at gcc dot gnu dot org
2005-09-14 6:31 ` reichelt at gcc dot gnu dot org
[not found] <bug-17740-7427@http.gcc.gnu.org/bugzilla/>
2005-10-23 20:44 ` cvs-commit at gcc dot gnu dot org
2005-10-23 20:45 ` pinskia 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).