This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/41603] New: [-fwhole-file] Add diagnostic for assumed-length character function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]