From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9487 invoked by alias); 23 Feb 2006 17:44:33 -0000 Received: (qmail 9462 invoked by uid 48); 23 Feb 2006 17:44:31 -0000 Date: Thu, 23 Feb 2006 17:44:00 -0000 Message-ID: <20060223174431.9461.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/24685] real(16) formatted input is broken for huge values In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sje at cup dot hp dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg02675.txt.bz2 List-Id: ------- Comment #9 from sje at cup dot hp dot com 2006-02-23 17:44 ------- I am still seeing this fail on ia64-hp-hpux11.23 which uses real*16. I believe the problem is in io/write.c (output_float). While write_real sets the maximum width to 40 for real*16, output_float still uses a 32 char buffer in sprintf to convert the number to a string so we still get more truncation than we should. I think this buffer should 40+ chars long. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24685