This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Enable Hollerith constant and character array in format tag.
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org
- Cc: Feng Wang <wf_cs at yahoo dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 8 Apr 2005 14:01:57 +0200
- Subject: Re: [fortran, patch] Enable Hollerith constant and character array in format tag.
- Organization: SUSE Labs
- References: <20050408021130.64963.qmail@web15601.mail.cnb.yahoo.com>
On Friday 08 April 2005 04:11, Feng Wang wrote:
> Is anybody reviewing this? I think this is also an important extension.
I agree that it is important, but there really is more to do before
the patch is OK. At least two things come to mind (I hope I can't
think up more for the next review ;-)
1. Can you add more test cases that:
* make sure we do the warnings;
* make sure holleriths can only appear where they are
allowed to appear (which is itself a debatable question);
* make sure (*cough*) "numerical" holleriths are converted
to the proper value;
* see what parts of the good old g77 test suite can now be
included in the gfortran test suite.
2. Document the extension (perhaps c&p from the g77 manual?).
Re. 1, consider for example:
program freakmeout
implicit none
real r, x, y
parameter (r = 4hdead)
parameter (y = 4*r)
x = sin(r)
x = x * r
x = x / r
x = x + r
x = x - r
end
This segfaults with your patch.
Gr.
Steven