This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36515] Integer read from stdin yields a value overflow for a valid integer.
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2008 20:03:42 -0000
- Subject: [Bug fortran/36515] Integer read from stdin yields a value overflow for a valid integer.
- References: <bug-36515-12036@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from jvdelisle at gcc dot gnu dot org 2008-06-15 20:03 -------
Subject: Bug 36515
Author: jvdelisle
Date: Sun Jun 15 20:02:58 2008
New Revision: 136822
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136822
Log:
2008-06-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36515
* libgfortran.h (compile_options_t): Add int range_check to structure.
* runtime/compile_options.c (set_options): Add range_check option.
(init_compile_options): Likewise.
*io/read.c (read_decimal): Change overflow checks to include
range_check.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/read.c
trunk/libgfortran/libgfortran.h
trunk/libgfortran/runtime/compile_options.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36515