public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25081]  New: better diagnostic needed
@ 2005-11-26 17:58 jv244 at cam dot ac dot uk
  2005-11-28 22:27 ` [Bug fortran/25081] [4.1] Assumed length character function allowed eedelman at gcc dot gnu dot org
  2005-11-28 22:36 ` eedelman at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 17:58 UTC (permalink / raw)
  To: gcc-bugs

using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease)  with '-g -pedantic
-std=f95', I get a bad / no diagnostic for the following invalid code:

MODULE M1

CONTAINS
 SUBROUTINE S1
 CONTAINS
  CHARACTER(LEN=*) FUNCTION F1()
   F1="1234"
  END FUNCTION F1
 END SUBROUTINE S1
END MODULE M1
END


-- 
           Summary: better diagnostic needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/25081] [4.1] Assumed length character function allowed
  2005-11-26 17:58 [Bug fortran/25081] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-28 22:27 ` eedelman at gcc dot gnu dot org
  2005-11-28 22:36 ` eedelman at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-11-28 22:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eedelman at gcc dot gnu dot org  2005-11-28 22:27 -------
I can reproduce this with gfortran 4.1.0 20051128, but gfortran 4.2.0 20051128
correctly gives an error:

erik:~$ gfortran huj.f90
 In file huj.f90:6

  CHARACTER(LEN=*) FUNCTION F1()
                             1
Error: Character-valued internal function 'f1' at (1) must not be assumed
length


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
            Summary|better diagnostic needed    |[4.1] Assumed length
                   |                            |character function allowed


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


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

* [Bug fortran/25081] [4.1] Assumed length character function allowed
  2005-11-26 17:58 [Bug fortran/25081] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-28 22:27 ` [Bug fortran/25081] [4.1] Assumed length character function allowed eedelman at gcc dot gnu dot org
@ 2005-11-28 22:36 ` eedelman at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-11-28 22:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from eedelman at gcc dot gnu dot org  2005-11-28 22:36 -------
This a duplicate of PR 24705, which was recently fixed on 4.2 and 4.0, but not
(yet?) on 4.1.

*** This bug has been marked as a duplicate of 24705 ***


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-11-28 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 17:58 [Bug fortran/25081] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-28 22:27 ` [Bug fortran/25081] [4.1] Assumed length character function allowed eedelman at gcc dot gnu dot org
2005-11-28 22:36 ` eedelman 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).