This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [4.3/4.4 Regression] Wrong locus for errors in DATA statement
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "Tobias Burnus" <burnus at net-b dot de>
- Cc: "Fortran List" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 22 Jun 2008 14:10:05 +0200
- Subject: Re: [4.3/4.4 Regression] Wrong locus for errors in DATA statement
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=g5jOpyo/nABYyMJtFTirwMV0ycdjJvO4sqlWH686yfo=; b=QONL08HT0TdeROhb5ztztL15rbypY1Pj4F5RhX9QYn73jN8p7UIUf12HriOJcFHenQ N/QaJXC00+oF8QX2L+wCBvG5j8on9jkFSzqDmij+N3vOOd6iWynoRj8QigHm9omwfhom y5txiDvPKCkkHIn+Fh1A1h5w09tRUoyTrDKuc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DBgELcU6rN+WBHFDR2SuAIFZSf9XfU92Z0RJuDENwTYp2wTlgPGBhlgP5wAt2kOyiy WwMehu2nQN6d6V4oy1u4dFE2EOYj5oQMK1NAXQBIvm7fUC64utuvFKXOlyD7zlAq4jU9 qkiGkFq9zhe5LFogp6f541kSsdbBglLoHoAz4=
- References: <339c37f20806172317m4fca923egdabbe1f08b98899b@mail.gmail.com> <485E388E.9060501@net-b.de>
Thanks Tobias,
I'm still trying to figure out where the locus gets lost, in the hope
of doing something better.
Cheers
Paul
On Sun, Jun 22, 2008 at 1:33 PM, Tobias Burnus <burnus@net-b.de> wrote:
> Paul Richard Thomas wrote:
>>
>> it was much simpler to substitute the rvalue locus by that
>> of the lvaue in the error message. The testcase is the reporter's.
>>
>> Bootstrapped and regtested on x86_ia64/FC8 - OK for trunk and 4.3?
>>
>
> OK for 4.4 and 4.3. Thanks for the patch. (Having the RHS location would be
> nicer, but it is much better than 4.2 or 4.3/4.4.)
>
> Tobias
>
>> Paul
>>
>> 2008-06-18 Paul Thomas <pault@gcc.gnu.org>
>>
>> PR fortran/34371
>> * expr.c (gfc_check_assign): Change message and locus for
>> error when conform == 0.
>>
>> 2008-06-18 Paul Thomas <pault@gcc.gnu.org>
>>
>> PR fortran/36371
>> * gfortran.dg/data_array_5.f90: New test.
>>
>
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy