[Bug fortran/21104] Segmentation fault on correct code
paulthomas2 at wanadoo dot fr
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 16:05:00 GMT 2005
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-04-27 16:03 -------
This is a bug for the following reasons:
A] From the standard, we have:
12.3.1.1 Explicit interface
A procedure other than a statement function shall have an explicit interface if
......
(2) The procedure has
......
(c) An array-valued result (functions only),
......
(3) The procedure is elemental.
......
HOWEVER....
NOTE 12.3
An interface block cannot be used to describe the interface of an internal
procedure, a module procedure, or an intrinsic procedure because the
interfaces of such procedures are already
explicit..........
B] DF f90 says that it is standard conforming.
Sorry, the option is /stand:f95 and not /strict. Anyway it goes through.
$ f90 /stand:f95 /compile_only /nologo test_intr.f90
test_intr.f90
In conclusion, this is correct code. Inserting an explicit interface in the
module fails, correctly, but is allowed, correctly, in the subroutine perdida.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21104
More information about the Gcc-bugs
mailing list