This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31201] Too large unit number generates wrong code



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]