This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40041] New: spurious warning with INTRINSIC statement
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2009 09:31:12 -0000
- Subject: [Bug fortran/40041] New: spurious warning with INTRINSIC statement
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(see also: http://gcc.gnu.org/ml/fortran/2009-05/msg00068.html)
$> cat foo.f
INTRINSIC ABS, MAX
a(n) = MAX(ABS(2),ABS(3),n)
END
$> gfortran-svn -Wall -Wextra foo.f
foo.f:1.21:
INTRINSIC ABS, MAX
1
Warning: Type specified for intrinsic function 'abs' at (1) is ignored
foo.f:1.26:
INTRINSIC ABS, MAX
1
Warning: Type specified for intrinsic function 'max' at (1) is ignored
The same warnings are given if the arguments of ABS/MAX are of default-real
kind, so this not related to implicit typing.
--
Summary: spurious warning with INTRINSIC statement
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40041