public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34657] New: program-unit MY_SUB imports symbol MY_SUB
@ 2008-01-03 20:18 jv244 at cam dot ac dot uk
2008-01-04 9:12 ` [Bug fortran/34657] " burnus at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-01-03 20:18 UTC (permalink / raw)
To: gcc-bugs
The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95', but does not do so with
gcc version 4.3.0 20080103 (experimental) [trunk revision 131300] (GCC)
module test_mod
interface
subroutine my_sub (a)
real a
end subroutine
end interface
end module
subroutine my_sub (a)
use test_mod
real a
print *, a
end subroutine
END
--
Summary: program-unit MY_SUB imports symbol MY_SUB
Product: gcc
Version: 4.3.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=34657
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/34657] program-unit MY_SUB imports symbol MY_SUB
2008-01-03 20:18 [Bug fortran/34657] New: program-unit MY_SUB imports symbol MY_SUB jv244 at cam dot ac dot uk
@ 2008-01-04 9:12 ` burnus at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-01-04 9:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-04 07:29 -------
NAG f95 and g95 print an error:
Error: USE TEST_MOD in program-unit MY_SUB imports symbol MY_SUB
Error: Module 'test_mod' at (1) redefines the current program unit 'my_sub'
ifort prints nothing by default and with -stand f95:
Warning: An interface-block in a subprogram shall not contain an
interface-body for a procedure defined by that subprogram. [MY_SUB]
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-01-04 07:29:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34657
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-04 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 20:18 [Bug fortran/34657] New: program-unit MY_SUB imports symbol MY_SUB jv244 at cam dot ac dot uk
2008-01-04 9:12 ` [Bug fortran/34657] " burnus 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).