This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33072] New: "use mod, only: operator(.sub.)" matches any procedure "sub"
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2007 21:02:24 -0000
- Subject: [Bug fortran/33072] New: "use mod, only: operator(.sub.)" matches any procedure "sub"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Expected: An error that the user operator .sub. does not exist.
Actually: Compiles.
NAG f95:
Error: foo.f90, line 9: Cannot find symbol .SUB. in module A
module a
implicit none
contains
subroutine sub()
end subroutine sub
end module a
program test
use a, only: operator(.sub.)
end program test
--
Summary: "use mod, only: operator(.sub.)" matches any procedure
"sub"
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: accepts-invalid
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=33072