public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41603]  New: [-fwhole-file] Add diagnostic for assumed-length character function
@ 2009-10-06 14:26 burnus at gcc dot gnu dot org
  2009-10-06 14:27 ` [Bug fortran/41603] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-06 14:26 UTC (permalink / raw)
  To: gcc-bugs

Found in the thread
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/bb75425678569ae3
James Van Buskirk wrote a program there in
http://groups.google.com/group/comp.lang.fortran/msg/fb12cca32eab44cb

The program seems to be invalid with the interface declaration.

ifort -warn all writes:

test.f90(58): warning #7984: A CHARACTER function name must not be declared
with an asterisk type-param-value (i.e., (LEN=*)) if the function is part of an
interface-body. No interface block will be generated.   [ASSUMED_LEN]
function assumed_len(x)
---------^

NAG f95 writes:

Error: ahjf.f90: Assumed-length character function ASSUMED_LEN described in an
INTERFACE block in FUNCS as non-assumed

Expected: With "gfortran -std=f2003 -Wall -pedantic -fwhole-file ahjf.f90" one
should see also some diagnostic


-- 
           Summary: [-fwhole-file] Add diagnostic for assumed-length
                    character function
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-41603-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-03-13 15:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-06 14:26 [Bug fortran/41603] New: [-fwhole-file] Add diagnostic for assumed-length character function burnus at gcc dot gnu dot org
2009-10-06 14:27 ` [Bug fortran/41603] " burnus at gcc dot gnu dot org
2009-10-06 14:57 ` burnus at gcc dot gnu dot org
2009-10-06 15:01 ` burnus at gcc dot gnu dot org
2009-10-06 17:56 ` burnus at gcc dot gnu dot org
2009-10-07  8:02 ` burnus at gcc dot gnu dot org
2009-10-14 16:10 ` burnus at gcc dot gnu dot org
     [not found] <bug-41603-4@http.gcc.gnu.org/bugzilla/>
2011-03-13 15:54 ` pault at gcc dot gnu.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).