From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20367 invoked by alias); 17 Mar 2010 22:20:55 -0000 Received: (qmail 19703 invoked by uid 48); 17 Mar 2010 22:20:43 -0000 Date: Wed, 17 Mar 2010 22:20:00 -0000 Message-ID: <20100317222043.19702.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43310] -pedantic errors involving PARAMETERs and out of range result In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl 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: 2010-03/txt/msg01650.txt.bz2 ------- Comment #12 from kargl at gcc dot gnu dot org 2010-03-17 22:20 ------- (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > Maybe we just need to document that -pedantic changes the range of integers to > > > be what the Fortran standard requires (a symmetric range). > > > > The Fortran Standard requires neither a symmetric nor asymmetric > > range. > > Well, the number model is symmetric. You're preaching to the choir. ;) Yes, the model number representation of integer is symmetric. However, the representable range on integer does not have to correspond to the model numbers. function myabs(i) myabs = iabs(i) end function myabs function mynot(i) mynot = not(i) end function mynot Do these functions conform to the standard for all poosible values of i? Careful with your answer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43310