public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c)
@ 2003-12-18 17:35 tow21 at cam dot ac dot uk
  2003-12-18 19:15 ` [Bug fortran/13433] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tow21 at cam dot ac dot uk @ 2003-12-18 17:35 UTC (permalink / raw)
  To: gcc-bugs

(tree-ssa snapshot of 20031217)

The following code:
      Character*(*) Function string(label,default)

      Implicit None
      Character(Len=*), Intent(In) :: label
      Character(Len=*), Intent(In) :: default

      string = ''
      
      End Function string

produces the following error:
parabrisas% gfortran -xf95 -c -O test.f
f951: ../../gcc/gcc/fortran/trans-decl.c:1022: gfc_build_function_decl:
Assertion `sym->ts.cl && sym->ts.cl->length && sym->ts.cl->length->expr_type ==
EXPR_CONSTANT' failed.
test.f: In function `string':

test.f:0: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [gfortran] ICE in assumed-length character function
                    (trans-decl.c)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13433


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/13433] [gfortran] ICE in assumed-length character function (trans-decl.c)
  2003-12-18 17:35 [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c) tow21 at cam dot ac dot uk
@ 2003-12-18 19:15 ` pinskia at gcc dot gnu dot org
  2003-12-19  7:39 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-18 19:15 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |tree-ssa


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13433


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/13433] [gfortran] ICE in assumed-length character function (trans-decl.c)
  2003-12-18 17:35 [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c) tow21 at cam dot ac dot uk
  2003-12-18 19:15 ` [Bug fortran/13433] " pinskia at gcc dot gnu dot org
@ 2003-12-19  7:39 ` pinskia at gcc dot gnu dot org
  2004-02-15 16:41 ` cvs-commit at gcc dot gnu dot org
  2004-02-15 17:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  7:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 07:28 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-19 07:28:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13433


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/13433] [gfortran] ICE in assumed-length character function (trans-decl.c)
  2003-12-18 17:35 [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c) tow21 at cam dot ac dot uk
  2003-12-18 19:15 ` [Bug fortran/13433] " pinskia at gcc dot gnu dot org
  2003-12-19  7:39 ` pinskia at gcc dot gnu dot org
@ 2004-02-15 16:41 ` cvs-commit at gcc dot gnu dot org
  2004-02-15 17:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-15 16:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-15 16:41 -------
Subject: Bug 13433

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pbrook@gcc.gnu.org	2004-02-15 16:40:55

Modified files:
	gcc/fortran    : ChangeLog trans-decl.c trans-expr.c 
	                 trans-types.c 
	gcc/testsuite  : ChangeLog.tree-ssa 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: straret.f90 

Log message:
	PR gfortran/13433
	* trans-decl.c (gfc_build_function_decl) For functions
	returning CHARACTER*(*) pass an extra length argument,
	following g77 calling conventions.
	* trans-types.c (gfc_get_function_type) Ditto.
	* trans-expr.c (gfc_conv_function_call) Ditto.
	
	* gfortran.fortran-torture/execute/straret.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.121&r2=1.1.2.122
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.30&r2=1.1.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.17&r2=1.1.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.10&r2=1.1.2.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.171&r2=1.1.2.172
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/straret.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13433


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/13433] [gfortran] ICE in assumed-length character function (trans-decl.c)
  2003-12-18 17:35 [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c) tow21 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2004-02-15 16:41 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-15 17:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-15 17:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-15 17:44 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13433


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-15 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-18 17:35 [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c) tow21 at cam dot ac dot uk
2003-12-18 19:15 ` [Bug fortran/13433] " pinskia at gcc dot gnu dot org
2003-12-19  7:39 ` pinskia at gcc dot gnu dot org
2004-02-15 16:41 ` cvs-commit at gcc dot gnu dot org
2004-02-15 17:44 ` 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).