This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29288] New: All intrinsics are allowed as actual arguments
- From: "fxcoudert 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 Sep 2006 16:41:06 -0000
- Subject: [Bug fortran/29288] New: All intrinsics are allowed as actual arguments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(vaguely related to PR16580)
We're currently not checking if an intrinsic is allowed to be used as an actual
argument or not (and it's a regression wrt g77):
$ ifort a.f
fortcom: Error: a.f, line 2: This intrinsic procedure cannot be passed as an
actual argument. [ICHAR]
call BAR(ichar)
---------------^
compilation aborted for a.f (code 1)
$ pgf90 a.f
PGF90-S-0073-Intrinsic or predeclared, ichar, cannot be passed as an argument
(a.f: 2)
0 inform, 0 warnings, 1 severes, 0 fatal for MAIN
$ gfortran a.f
/tmp/cckKTcIB.o(.text+0x5): In function `MAIN__':
: undefined reference to `specific__ichar_1'
/tmp/cckKTcIB.o(.text+0xa): In function `MAIN__':
: undefined reference to `bar_'
collect2: ld returned 1 exit status
--
Summary: All intrinsics are allowed as actual arguments
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
OtherBugsDependingO 16580
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29288