From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28940 invoked by alias); 17 Mar 2007 06:28:40 -0000 Received: (qmail 28906 invoked by uid 48); 17 Mar 2007 06:28:29 -0000 Date: Sat, 17 Mar 2007 06:28:00 -0000 Message-ID: <20070317062829.28905.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31201] Too large unit number generates wrong code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01621.txt.bz2 ------- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-03-17 06:28 ------- The front end is converting the integer8 to integer4 and not checking the range of the number first. The integer value gets wrapped around and the library sees unit=10 for this test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31201