public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions
@ 2005-07-17 11:12 tkoenig at gcc dot gnu dot org
2005-07-17 15:56 ` [Bug fortran/22518] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-07-17 11:12 UTC (permalink / raw)
To: gcc-bugs
$ cat elem-char.f90
program main
character(len=2) :: a(2)
print *,foo(a)
contains
elemental function foo(a)
character(len=*), intent(in) :: a
character(len=*) foo
foo = a
end function foo
end program main
$ gfortran elem-char.f90
elem-char.f90: In function 'MAIN__':
elem-char.f90:3: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1106
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050716 (experimental)
--
Summary: ICE in gfc_conv_function_call for elemental character
functions
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tkoenig at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19276
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for elemental character functions
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
@ 2005-07-17 15:56 ` pinskia at gcc dot gnu dot org
2005-07-19 7:58 ` tkoenig at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-17 15:47 -------
Confirmed, related to PR 22146.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-17 15:47:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for elemental character functions
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
2005-07-17 15:56 ` [Bug fortran/22518] " pinskia at gcc dot gnu dot org
@ 2005-07-19 7:58 ` tkoenig at gcc dot gnu dot org
2005-07-19 8:14 ` tkoenig at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-07-19 7:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-07-19 07:30 -------
This is probably invalid code.
ifort rejects this with
fortcom: Error: elem-char.f90, line 5: A CHARACTER function name must not be
declared with an asterisk type-param-value (i.e., (LEN=*)) if the function is
an internal function. [FOO]
elemental function foo(a)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for elemental character functions
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
2005-07-17 15:56 ` [Bug fortran/22518] " pinskia at gcc dot gnu dot org
2005-07-19 7:58 ` tkoenig at gcc dot gnu dot org
@ 2005-07-19 8:14 ` tkoenig at gcc dot gnu dot org
2005-07-22 8:37 ` [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg) tkoenig at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-07-19 8:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-07-19 07:57 -------
No elemental function call necessary, it seems. (The *
is probably invalid for this).
Here is another case which exhibits the same behavior:
$ cat clen.f90
program main
implicit none
character(len=2) :: a
a = 'xy'
print *,fun(a)
contains
function fun(arg)
character(len=*) :: arg
character(len=len(arg)) :: fun
fun = 'xx'
end function fun
end program main
$ gfortran clen.f90
clen.f90: In function 'MAIN__':
clen.f90:5: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1106
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: ../gcc-4.1-20050716/configure --prefix=/home/zfkts --enable-
languages=c,f95
Thread model: posix
gcc version 4.1.0 20050716 (experimental)
We don't handle the specification expression in this case
(sym->ts.cl->length->expr_type is EXPR_FUNCTION).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-19 8:14 ` tkoenig at gcc dot gnu dot org
@ 2005-07-22 8:37 ` tkoenig at gcc dot gnu dot org
2005-09-07 10:45 ` rsandifo at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-07-22 8:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-07-22 08:34 -------
Updated summary to reflect the bug more accurately.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in |ICE in
|gfc_conv_function_call for |gfc_conv_function_call for
|elemental character |character function with
|functions |LEN=length(arg)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-22 8:37 ` [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg) tkoenig at gcc dot gnu dot org
@ 2005-09-07 10:45 ` rsandifo at gcc dot gnu dot org
2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-07 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-07 10:45 -------
Fixed by the same patch as 15326.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15326
AssignedTo|unassigned at gcc dot gnu |rsandifo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-17 15:47:49 |2005-09-07 10:45:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-09-07 10:45 ` rsandifo at gcc dot gnu dot org
@ 2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
2005-09-08 18:54 ` rsandifo at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-08 18:51 UTC (permalink / raw)
To: gcc-bugs
--
Bug 22518 depends on bug 15326, which changed state.
Bug 15326 Summary: ICE with assumed length character strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15326
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
@ 2005-09-08 18:54 ` rsandifo at gcc dot gnu dot org
2005-09-18 19:53 ` tkoenig at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-08 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-08 18:54 -------
Patch applied to trunk.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-09-08 18:54 ` rsandifo at gcc dot gnu dot org
@ 2005-09-18 19:53 ` tkoenig at gcc dot gnu dot org
2005-09-18 19:56 ` [Bug fortran/22518] [4.0 only] " tkoenig at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-09-18 19:53 UTC (permalink / raw)
To: gcc-bugs
--
Bug 22518 depends on bug 15326, which changed state.
Bug 15326 Summary: [4.0 only] ICE with assumed length character strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15326
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] [4.0 only] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-09-18 19:56 ` [Bug fortran/22518] [4.0 only] " tkoenig at gcc dot gnu dot org
@ 2005-09-18 19:56 ` pinskia at gcc dot gnu dot org
2005-09-18 20:10 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 19:56 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] [4.0 only] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-09-18 19:53 ` tkoenig at gcc dot gnu dot org
@ 2005-09-18 19:56 ` tkoenig at gcc dot gnu dot org
2005-09-18 19:56 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-09-18 19:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-09-18 19:56 -------
Not fixed on 4.0:
$ cat > clen.f90
program main
implicit none
character(len=2) :: a
a = 'xy'
print *,fun(a)
contains
function fun(arg)
character(len=*) :: arg
character(len=len(arg)) :: fun
fun = 'xx'
end function fun
end program main
$ gfortran clen.f90
clen.f90: In function 'MAIN__':
clen.f90:5: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1108
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0/configure --prefix=/home/ig25
--enable-languages=c,fortran
Thread model: posix
gcc version 4.0.2 20050917 (prerelease)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Known to fail| |4.0.2
Known to work| |4.1.0
Resolution|FIXED |
Summary|ICE in |[4.0 only] ICE in
|gfc_conv_function_call for |gfc_conv_function_call for
|character function with |character function with
|LEN=length(arg) |LEN=length(arg)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] [4.0 only] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-09-18 19:56 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 20:10 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-18 20:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|rsandifo at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/22518] [4.0 only] ICE in gfc_conv_function_call for character function with LEN=length(arg)
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-09-18 20:10 ` rsandifo at gcc dot gnu dot org
@ 2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 20:27 -------
All of these are fixed in 4.1.0. Since 4.0.2 is the last 4.0 release before a 4.1.0 release will be made,
4.0.2 and 4.0.1 were special releases for gfrotran. 4.0.3 should be a normal release for GCC and
gfortran in that regressions are the only changes.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.3 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22518
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-09-18 20:27 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-17 11:12 [Bug fortran/22518] New: ICE in gfc_conv_function_call for elemental character functions tkoenig at gcc dot gnu dot org
2005-07-17 15:56 ` [Bug fortran/22518] " pinskia at gcc dot gnu dot org
2005-07-19 7:58 ` tkoenig at gcc dot gnu dot org
2005-07-19 8:14 ` tkoenig at gcc dot gnu dot org
2005-07-22 8:37 ` [Bug fortran/22518] ICE in gfc_conv_function_call for character function with LEN=length(arg) tkoenig at gcc dot gnu dot org
2005-09-07 10:45 ` rsandifo at gcc dot gnu dot org
2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
2005-09-08 18:54 ` rsandifo at gcc dot gnu dot org
2005-09-18 19:53 ` tkoenig at gcc dot gnu dot org
2005-09-18 19:56 ` [Bug fortran/22518] [4.0 only] " tkoenig at gcc dot gnu dot org
2005-09-18 19:56 ` pinskia at gcc dot gnu dot org
2005-09-18 20:10 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` 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).