public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
@ 2005-12-30 22:44 ` eedelman at gcc dot gnu dot org
2006-01-04 20:41 ` eedelman at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-30 22:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from eedelman at gcc dot gnu dot org 2005-12-30 22:44 -------
The testcase compiles without error messages in 4.2.0 20051230 (I haven't tried
with 4.1 or 4.0 yet). However, if I try to use IntToChar2 from another program
unit, I get another error, so there's still a bug somewhere. E.g. for the
program
----------------
program test
use cutils
implicit none
character(25) :: str
str = IntToChar2(3)
end program test
--------------------
I get
erik:/home/gcc/head/test$ gfortran 23675.f90
23675.f90: In function 'MAIN__':
23675.f90:22: internal compiler error: in gfc_get_symbol_decl, at
fortran/trans-decl.c:819
Possible workaround at the moment: Declare maxStringLength to be a PARAMETER
--
eedelman at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eedelman at gcc dot gnu dot
| |org
AssignedTo|unassigned at gcc dot gnu |eedelman at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
2005-12-30 22:44 ` [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation) eedelman at gcc dot gnu dot org
@ 2006-01-04 20:41 ` eedelman at gcc dot gnu dot org
2006-01-05 0:22 ` eedelman at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-04 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from eedelman at gcc dot gnu dot org 2006-01-04 20:41 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00079.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
2005-12-30 22:44 ` [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation) eedelman at gcc dot gnu dot org
2006-01-04 20:41 ` eedelman at gcc dot gnu dot org
@ 2006-01-05 0:22 ` eedelman at gcc dot gnu dot org
2006-01-05 21:10 ` eedelman at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-05 0:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from eedelman at gcc dot gnu dot org 2006-01-05 00:22 -------
Subject: Bug 23675
Author: eedelman
Date: Thu Jan 5 00:22:39 2006
New Revision: 109368
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109368
Log:
2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/23675
* expr.c (gfc_expr_set_symbols_referenced): New function.
* gfortran.h: Add a function prototype for it.
* resolve.c (resolve_function): Use it for
use associated character functions lengths.
* expr.c, gfortran.h, resolve.c: Updated copyright years.
testsuite/
2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/23675
gfortran.dg/char_result_11.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/char_result_11.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-01-05 0:22 ` eedelman at gcc dot gnu dot org
@ 2006-01-05 21:10 ` eedelman at gcc dot gnu dot org
2006-01-05 21:17 ` eedelman at gcc dot gnu dot org
2006-01-28 21:21 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-05 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from eedelman at gcc dot gnu dot org 2006-01-05 21:10 -------
Subject: Bug 23675
Author: eedelman
Date: Thu Jan 5 21:10:05 2006
New Revision: 109389
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109389
Log:
fortran/
2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/23675
* expr.c (gfc_expr_set_symbols_referenced): New function.
* gfortran.h: Add a function prototype for it.
* resolve.c (resolve_function): Use it for use associated character
functions lengths.
* expr.c, gfortran.h, resolve.c: Updated copyright years.
testsuite/
2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/23675
gfortran.dg/char_result_11.f90: New.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/char_result_11.f90
- copied unchanged from r109368,
trunk/gcc/testsuite/gfortran.dg/char_result_11.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/resolve.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-01-05 21:10 ` eedelman at gcc dot gnu dot org
@ 2006-01-05 21:17 ` eedelman at gcc dot gnu dot org
2006-01-28 21:21 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-05 21:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from eedelman at gcc dot gnu dot org 2006-01-05 21:17 -------
Fixed on 4.1 and mainline,
--
eedelman at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation)
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-01-05 21:17 ` eedelman at gcc dot gnu dot org
@ 2006-01-28 21:21 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 21:21 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/23675] New: ICE in gfc_finish_var_decl (string manipulation)
@ 2005-09-01 9:45 thomas dot lavergne at jrc dot it
2005-09-04 20:45 ` [Bug fortran/23675] " fxcoudert at gcc dot gnu dot org
0 siblings, 1 reply; 7+ messages in thread
From: thomas dot lavergne at jrc dot it @ 2005-09-01 9:45 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2397 bytes --]
I do not know how this bug is linked to others (e.g. 18883), I let you decide.
It was on GNU Fortran 95 (GCC 4.0.0) and is still in the 4.1 snapshot I build
yesterday (gcc-4.1-20050826).
I get a ICE on that file (cutils.f95): (!==== lines are part of the file) The
reported function is 'inttochar2' althoug the reported line is 7 (which is the
line public::IntToChar2).
[:prompt:] cat cutils.f95
!================
module cutils
implicit none
private
integer :: maxStringLength = 25
public :: IntToChar2
contains
elemental function IntToChar2(integerValue)
integer, intent( in) :: integerValue
character(len = maxStringLength) :: IntToChar2
!
! Creates the character representation of an integer.
!
write(IntToChar2, *) integerValue
end function IntToChar2
end module cutils
!================
[:prompt:] gfortran-4.1-20050826 -v -c cutils.f95
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /mtvhome/laverth/TOOLS/GCCsnap/gcc-4.1-20050826/configure --
prefix=/home1/laverth/TOOLS/GCCsnap/gcc41snap --program-suffix=-4.1-20050826 --
with-local-prefix=/home1/laverth/TOOLS/GCCsnap/include --enable-languages=c,f95
--disable-libgcj --with-mpfr=/usr/local
Thread model: posix
gcc version 4.1.0 20050826 (experimental)
/home1/laverth/TOOLS/GCCsnap/gcc41snap/libexec/gcc/i686-pc-linux-gnu/4.1.0/f951
cutils.f95 -quiet -dumpbase cutils.f95 -mtune=pentiumpro -auxbase cutils -
version -o /tmp/ccfwaq3u.s
GNU F95 version 4.1.0 20050826 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.1.0 20050826 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
cutils.f95: In function inttochar2:
cutils.f95:7: internal compiler error: in gfc_finish_var_decl, at fortran/trans-
decl.c:438
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in gfc_finish_var_decl (string manipulation)
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thomas dot lavergne at jrc dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-01-28 21:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23675-6934@http.gcc.gnu.org/bugzilla/>
2005-12-30 22:44 ` [Bug fortran/23675] ICE in gfc_finish_var_decl (string manipulation) eedelman at gcc dot gnu dot org
2006-01-04 20:41 ` eedelman at gcc dot gnu dot org
2006-01-05 0:22 ` eedelman at gcc dot gnu dot org
2006-01-05 21:10 ` eedelman at gcc dot gnu dot org
2006-01-05 21:17 ` eedelman at gcc dot gnu dot org
2006-01-28 21:21 ` pinskia at gcc dot gnu dot org
2005-09-01 9:45 [Bug fortran/23675] New: " thomas dot lavergne at jrc dot it
2005-09-04 20:45 ` [Bug fortran/23675] " fxcoudert 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).