This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31201] Too large unit number generates wrong code
- 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: 17 Mar 2007 13:01:22 -0000
- Subject: [Bug fortran/31201] Too large unit number generates wrong code
- References: <bug-31201-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-03-17 13:01 -------
(In reply to comment #3)
> The front end is converting the integer8 to integer4 and not checking the range
> of the number first.
Every time a unit number is used, there should be a check to be sure it's in
the integer4 range, and otherwise emit an error.
Thanks for taking it, Jerry.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31201