The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.fortran
From: Tobias Burnus <bur...@net-b.de>
Date: Wed, 22 Feb 2012 08:10:03 +0100
Local: Wed, Feb 22 2012 2:10 am
Subject: Re: gfortran warnings
TideMan wrote:
Crashing is the wrong word: The compiler just exits with an error:
> gfortran -std=f95 -pedantic -Wall -Wextra -fcheck=all -O > But my program crashed on this line: > open(unit=lunnml,file=nmlfile,delim='apostrophe',status='old') > telling me I cannot use delim in f95. Error: Fortran 2003: DELIM= at (1) not allowed in Fortran 95
> But I've been using that ever since I went to namelists years ago and it
It's a bug in gfortran. In Fortran 2003, the DELM= is not only allowed > works fine. What is the problem here? in OPEN and in INQUIRE but also in the data transfer statements READ/WRITE. gfortran shares the checking code for both OPEN and READ/WRITE and wrongly claims that DELIM= is also invalid in OPEN. Workaround: -std=f2003 (or f2008 or gnu).
I have filled a bug report: http://gcc.gnu.org/bugzilla/post_bug.cgi
Tobias
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||