[4.3/4.4 Regression] Wrong locus for errors in DATA statement
Paul Richard Thomas
paul.richard.thomas@gmail.com
Wed Jun 18 10:22:00 GMT 2008
Dear All
This is another simple, going on obvious, PR: Somewhere, I do not know
where, the value expressions for data statements are losing their
correct locus on simplification or substitution and the declaration
locus for the parameter used instead. On noting that the condition
conform == 0 in gfc_check_assign only emerges from checking data
statements, 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?
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36371.diff
Type: text/x-patch
Size: 2092 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080618/70954859/attachment.bin>
More information about the Gcc-patches
mailing list