This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33230] New: Missing check: specification function must be pure
- 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: 29 Aug 2007 15:38:21 -0000
- Subject: [Bug fortran/33230] New: Missing check: specification function must be pure
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gfortran -std=f95 -pedantic -Wall -fall-intrinsics
gfortran.dg/char_result_7.f90
Compiles, but as g95 remarks:
Error: Specification function 'fn' at (1) must be PURE
which NAG f95 confirms:
Error: Reference to non-specification function FN in specification
and ifort joins in as well:
An explicit interface is required for a specification function. [FN]
Excerpt of that file (see testsuite for the full program):
function f2 (fn, i)
integer :: i, fn
character (len = fn (i)) :: f2
Called as "f2 (double, 70)" where DOUBLE is pure.
--
Summary: Missing check: specification function must be pure
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=33230