This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Internationalisation of the Fortran front-end
- From: François-Xavier Coudert <fxcoudert at gmail dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, patch <gcc-patches at gcc dot gnu dot org>, fortran at gcc dot gnu dot org
- Date: Thu, 1 Sep 2005 15:39:49 +0200
- Subject: Re: [gfortran,patch] Internationalisation of the Fortran front-end
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LPe0U+zxfU004DhsV+GUL8fHcEByItRc0iU+34cKlEoMgA4LWI0nc/7PEo38hydTykgs6M6Qy1enYlmpe4KaTimRru0P2Z61Z7wVmSJuosxko9RSMe/2zJroMk9vixp4XvyoE8xHg51e9SC14sSwUOuHVVf16GvqGEZ2eWQIOjs=
- References: <4314B863.3000804@gmail.com> <Pine.LNX.4.61.0508302232130.4521@digraph.polyomino.org.uk> <19c433eb05090102423f59716a@mail.gmail.com> <Pine.LNX.4.61.0509011055320.18627@digraph.polyomino.org.uk> <19c433eb050901052533883c58@mail.gmail.com> <m3ek88dikb.fsf@uniton.integrable-solutions.net>
> | gfc_error ("Expected array subscript at %C") is marked as c-format,
> | because %C is a valid printf-style format; in fact, it is used here in
> | gfortran internal format to represent the current locus.
>
> Passing locus around is specified with %H.
gfortran doesn't use locus in the same sense that other front-end
routines. An example of error message is:
In file a.f:1
write(w=10)
1
Error: Syntax error in WRITE statement at (1)
which is caused by gfc_error("Syntax error in WRITE statement at %C").
> You'd need to combine both styles into a single one, passing the locus
> explicitly and using the %H format specifier.
So I guess this part is not relevant.
Thanks,
FX