[Bug fortran/32150] New: Strangeness when repeating an INTERFACE entity in ONLY clause of USE statement
enok at lysator dot liu dot se
gcc-bugzilla@gcc.gnu.org
Wed May 30 08:27:00 GMT 2007
I have a MODULE containing an INTERFACE . I then USE this interface name in
another file, but accidently specifies the namd twice after the ONLY clause.
This generates strange error messages. It's hard to say exactly what triggers
the error - it seems that it only happens for INTERFACE names.
Other compilers I tried silently accepts such code (maybe a warning would be
the optimal response).
MODULE MOD
IMPLICIT NONE
INTERFACE FOO
MODULE PROCEDURE A
END INTERFACE
CONTAINS
SUBROUTINE A
END SUBROUTINE A
END MODULE MOD
PROGRAM TST
USE MOD, ONLY : FOO,FOO
IMPLICIT NONE
END PROGRAM TST
--
Summary: Strangeness when repeating an INTERFACE entity in ONLY
clause of USE statement
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: enok at lysator dot liu dot se
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32150
More information about the Gcc-bugs
mailing list