From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26537 invoked by alias); 22 Apr 2011 15:16:43 -0000 Received: (qmail 26527 invoked by uid 22791); 22 Apr 2011 15:16:42 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JV,TW_SG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Apr 2011 15:16:29 +0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48720] quad precision literals do not work X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 22 Apr 2011 15:16:00 -0000 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: 2011-04/txt/msg02359.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48720 --- Comment #6 from Steve Kargl 2011-04-22 15:16:02 UTC --- On Fri, Apr 22, 2011 at 08:00:33AM -0700, Steve Kargl wrote: > On Fri, Apr 22, 2011 at 12:47:03PM +0000, jvdelisle at frontier dot com wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48720 > > > > --- Comment #4 from jvdelisle at frontier dot com 2011-04-22 12:46:16 UTC --- > > On 04/21/2011 09:08 PM, kargl at gcc dot gnu.org wrote: > > --- snip --- > > >> > > >> I think we are not handling the 'q' as any more than an exponent marker. 'e' > > >> works just as well. > > > > > > Oh my, is gfortran accepting 1.1q0. Let's stop that > > > right now! Use 1.1e0_16. > > > > > > > Agree, and its in the front end somewhere. > > > > It's match_real_constant in primary.c. > > I suppose that question is do we want to disallow q. > Reading the code suggests that there are other problems if we continue to allow q. program foo real(8) d real(16) q q = 1.q0_16 d = 1.d0_8 print *, d, q end program foo troutmask:sgk[203] gfc4x -o z ui.f90 ui.f90:5.13: d = 1.d0_8 1 Error: Real number at (1) has a 'd' exponent and an explicit kind The above is required by the standard, so I think one should also mandate a similar error fro 1.q0_16.