This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20246] New: libfortran: iargc off-by-one error
- From: "anlauf at hep dot tu-darmstadt dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2005 12:50:06 -0000
- Subject: [Bug libfortran/20246] New: libfortran: iargc off-by-one error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
there is an obvious off-by-one error in gfortran's implementation of
the IARGC() intrinsic:
program iargc_test
implicit none
integer :: iargc
print *, iargc ()
end program iargc_test
% gfortran iargc_test.f90 && ./a.out
prints 1 instead of zero.
Cheers,
-ha
--
Summary: libfortran: iargc off-by-one error
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20246