public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function.
@ 2003-12-18 17:10 tow21 at cam dot ac dot uk
  2003-12-18 17:29 ` [Bug fortran/13432] [gfortran] " tow21 at cam dot ac dot uk
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tow21 at cam dot ac dot uk @ 2003-12-18 17:10 UTC (permalink / raw)
  To: gcc-bugs

(gcc tree-ssa snapshot of 20031217)

The following piece of code:

      Function string(label,default) Result(out_string)

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

      out_string = ''

      End Function string


gives this error message:

parabrisas% gfortran -xf95 -c -O test.f
 In file test.f:1

      Function string(label,default) Result(out_string)
                                                      1
Error: Entity with assumed character length at (1) must be a dummy
argument or a PARAMETER
 In file test.f:1

      Function string(label,default) Result(out_string)
                                                      1
Error: Entity with assumed character length at (1) must be a dummy
argument or a PARAMETER

-- 
           Summary: Error incorrectly diagnosed in assumed-length character
                    function.
           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=13432


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

* [Bug fortran/13432] [gfortran] Error incorrectly diagnosed in assumed-length character function.
  2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
@ 2003-12-18 17:29 ` tow21 at cam dot ac dot uk
  2003-12-18 19:23 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tow21 at cam dot ac dot uk @ 2003-12-18 17:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Error incorrectly diagnosed |[gfortran] Error incorrectly
                   |in assumed-length character |diagnosed in assumed-length
                   |function.                   |character function.


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


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

* [Bug fortran/13432] [gfortran] Error incorrectly diagnosed in assumed-length character function.
  2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
  2003-12-18 17:29 ` [Bug fortran/13432] [gfortran] " tow21 at cam dot ac dot uk
@ 2003-12-18 19:23 ` pinskia at gcc dot gnu dot org
  2003-12-19  7:55 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-18 19:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/13432] [gfortran] Error incorrectly diagnosed in assumed-length character function.
  2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
  2003-12-18 17:29 ` [Bug fortran/13432] [gfortran] " tow21 at cam dot ac dot uk
  2003-12-18 19:23 ` pinskia at gcc dot gnu dot org
@ 2003-12-19  7:55 ` pinskia at gcc dot gnu dot org
  2004-01-01 15:20 ` cvs-commit at gcc dot gnu dot org
  2004-01-01 15:22 ` pbrook at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  7:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 07:29 -------
Confirmed (NAG f95 accepts this).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-19 07:29:54
               date|                            |


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


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

* [Bug fortran/13432] [gfortran] Error incorrectly diagnosed in assumed-length character function.
  2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2003-12-19  7:55 ` pinskia at gcc dot gnu dot org
@ 2004-01-01 15:20 ` cvs-commit at gcc dot gnu dot org
  2004-01-01 15:22 ` pbrook at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-01 15:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-01 15:20 -------
Subject: Bug 13432

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pbrook@gcc.gnu.org	2004-01-01 15:20:29

Modified files:
	gcc/fortran    : ChangeLog resolve.c 

Log message:
	PR fortran/13432
	* resolve.c (resolve_symbol): Allow assumed length function results.

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.101&r2=1.1.2.102
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.12&r2=1.1.2.13



-- 


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


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

* [Bug fortran/13432] [gfortran] Error incorrectly diagnosed in assumed-length character function.
  2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2004-01-01 15:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-01 15:22 ` pbrook at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-01-01 15:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2004-01-01 15:22 -------
Fixed, but code still does not work because of bug 13433 

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


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


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

end of thread, other threads:[~2004-01-01 15:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-18 17:10 [Bug fortran/13432] New: Error incorrectly diagnosed in assumed-length character function tow21 at cam dot ac dot uk
2003-12-18 17:29 ` [Bug fortran/13432] [gfortran] " tow21 at cam dot ac dot uk
2003-12-18 19:23 ` pinskia at gcc dot gnu dot org
2003-12-19  7:55 ` pinskia at gcc dot gnu dot org
2004-01-01 15:20 ` cvs-commit at gcc dot gnu dot org
2004-01-01 15:22 ` pbrook 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).