From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85812 invoked by alias); 5 Oct 2017 21:10:28 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 85803 invoked by uid 89); 5 Oct 2017 21:10:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:sk:fortran, H*R:D*edu, Nonstandard, wwwyoutubecom X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Oct 2017 21:10:26 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id v95LAOBR068074 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 5 Oct 2017 14:10:24 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id v95LANsM068073 for fortran@gcc.gnu.org; Thu, 5 Oct 2017 14:10:23 -0700 (PDT) (envelope-from sgk) Date: Thu, 05 Oct 2017 21:10:00 -0000 From: Steve Kargl To: fortran@gcc.gnu.org Subject: BOZ, F2008 and F2015, and future of gfortran Message-ID: <20171005211023.GA67765@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00022.txt.bz2 Simply question. Do people want gfortran to conform to the F2008 and F2015 standards for boz-literal-constants? Are people willing to let go of extension? Consider program boz implicit none integer(1) :: i = z'deadbeef' ! Nonstandard initialization but integer(1) j ! accepted as-if initialized through data j/z'deadbeef'/ ! a data-stmt print *, i, j end program boz gfortran's current behavior with long lines wrap. % gfortran6 -static -o z z.f90 z.f90:3:20: integer(1) :: i = z'deadbeef' 1 Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This check can be disabled with the option '-fno-range-check' z.f90:6:13: print *, i, j 1 Error: Symbol 'i' at (1) has no IMPLICIT type z.f90:5:21: data j/z'deadbeef'/ 1 Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This check can be disabled with the option '-fno-range-check' A conforming version of gfortran conforming to the F2008 and F2015 standards. % gfcx -o z z.f90 && ./z -17 -17 -- Steve 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=IbCHE-hONow