This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] New testcase to evaluate Fortran substring expression
- From: Daniel Jacobowitz <drow at false dot org>
- To: Wu Zhou <woodzltc at cn dot ibm dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 3 Jul 2005 14:57:33 -0400
- Subject: Re: [RFA] New testcase to evaluate Fortran substring expression
- References: <Pine.LNX.4.63.0506221044490.11343@wks190384wss.cn.ibm.com>
On Wed, Jun 22, 2005 at 10:53:35AM +0800, Wu Zhou wrote:
> Eli/Daniel and all,
>
> Here is my new testcase to evaluate Fortran substring expression. The
> intention is to test whehter current GDB could correctly handle substring
> expression evaluation of Fortran. I tested it against g77-3.2.3 and
> gfortran-4.0.0. The last four tests failed for both configuration.
>
> I am also thinking of fixing these errors. It is easy to fix str(exp:exp)
> and str(:), but I am not sure how to fix str(:exp) and str(exp:) yet. Any
> hints/tips on this? TIA.
Let's hold this thought, OK? I would rather add the tests when you
have a patch to fix them. Alternatively PRs could be filed and the new
tests KFAILd, but I don't think that adds much value.
What's the problem with parsing (:exp)? An exp can't be empty, and a
colon can't appear at the start of an exp. I don't think (exp:) will
be any harder but my yacc is rusty.
--
Daniel Jacobowitz
CodeSourcery, LLC