From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14911 invoked by alias); 23 Nov 2015 14:59:07 -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 14898 invoked by uid 89); 23 Nov 2015 14:59:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,PLING_QUERY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f49.google.com Received: from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 23 Nov 2015 14:59:04 +0000 Received: by wmvv187 with SMTP id v187so164942896wmv.1 for ; Mon, 23 Nov 2015 06:59:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=oW1RwA+ndB4UHnh9uilMj3ZB+zNBeAVeCK20brh10Po=; b=anHCmsyv383RzzIh9r4iuxNmndMWZHMfpB5+Or4EQ5LM09A/5zQiC8uogIfPJRNm9R gLeEvLOL4GPNeFNArlX+Kk7S/QcLChFnklQPJW9nJETBEPRBWLm89e8/3JC5tFVBCXWl AZupfH0a/69PqGXi1Kp7+y4iD7W5OSGPkxWatSl5Nc/c3Wua1ceVthiTOeBBc8mUl3P1 8+Ku66RFzEitqRskGUuRlTLwUFHsnZavZN+zordIo2kMqDY45FoK2kwdWmFWwa+PfTcM V22qtOEPr42vNPs8sEa9MaCO/EGTESSTIMKR79gKtnl7ausQjG1Tc3HAJoDAY4eCcCYD Nx+g== X-Gm-Message-State: ALoCoQlBIoe1jEs5cTeH7LX00X93l5pg2VRpeS3fE7vBuvr69GIr57/JaJnIPyTbshFzLBotTuVT X-Received: by 10.28.215.211 with SMTP id o202mr16097648wmg.85.1448290741883; Mon, 23 Nov 2015 06:59:01 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id gl10sm13679077wjb.30.2015.11.23.06.59.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Nov 2015 06:59:01 -0800 (PST) Date: Mon, 23 Nov 2015 14:59:00 -0000 X-Google-Original-Date: Mon, 23 Nov 2015 14:59:00 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id tANEx0G2093546 for ; Mon, 23 Nov 2015 14:59:00 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id tANEx0pt093545 for fortran@gcc.gnu.org; Mon, 23 Nov 2015 14:59:00 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201511231459.tANEx0pt093545@mech-as222.men.bris.ac.uk> To: fortran@gcc.gnu.org Subject: 5.1 regression(?) format statement with '& !' character string Reply-To: mexas@bris.ac.uk X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00152.txt.bz2 The problem seems to be in 5.1. It doesn't occur in 5.0 or 6.0. $ cat z.f90 102 format ( '(' , es23.16 , '_rk , ' , es23.16 , '_rk) , & !' , i4 ) 101 format ( '(' , es23.16 , '_rk , ' , es23.16 , '_rk) & !' , i4 ) end $ gfortran --version GNU Fortran (GCC) 5.1.0 Copyright (C) 2015 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING $ gfortran z.f90 z.f90:2:31: 101 format ( '(' , es23.16 , '_rk , ' , es23.16 , '_rk) & !' , i4 ) 1 Error: Unexpected element '_' in format string at (1) z.f90:3:4: end 1 Error: Unexpected end of format string in format string at (1) $ module swap languages/gcc-5.1 languages/gcc-5.0 $ gfortran --version GNU Fortran (GCC) 5.0.0 20150201 (experimental) Copyright (C) 2015 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING $ gfortran z.f90 $ Thanks Anton