This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34432] New: integer(kind=init_expression) function is rejected
- 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: 11 Dec 2007 13:02:02 -0000
- Subject: [Bug fortran/34432] New: integer(kind=init_expression) function is rejected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I believe the following code is valid and it is accepted by NAG f95, ifort and
g95. Gfortran rejects it with
Error: Invalid character in name at (1)
module m
integer, parameter :: int_t = kind(4)
end module m
integer(kind=(int_t)) function test4()
use m
test4 = 1
end function test4
For the following -- extra ")" -- I got a not so helpful error message:
integer(kind=int_t)) function test4()
use m
test4 = 1
end function test4
--
Summary: integer(kind=init_expression) function is rejected
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
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=34432