This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31427] TRANSFER with mold kind /= lval kind: ICE on ia64, i686; no warning
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2007 10:17:43 -0000
- Subject: [Bug fortran/31427] TRANSFER with mold kind /= lval kind: ICE on ia64, i686; no warning
- References: <bug-31427-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-04-05 11:17 -------
The segfault happens because we come into gfc_int2int to convert the value from
TRANSFER into the integer(kind=1). But TRANSFER isn't simplified at this point,
although it should have been, which leads to referencing memory that is not
defined. This will be fixed when the gfc_simplify_transfer() function is
implemented (Paul T. and Tobias B. are working on it).
Admittedly, we should have an assert() in place to prevent this kind of
segfault (and have a clean ICE instead).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31427