This is the mail archive of the
mailing list for the GCC project.
Re: [patch,fortran]PR25057 default initialization and DATA statement conflict
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Dec 2006 18:44:51 -0800
- Subject: Re: [patch,fortran]PR25057 default initialization and DATA statement conflict
- References: <457C6AE5.email@example.com>
Jerry DeLisle wrote:
The attached patch fixes this bug by providing an appropriate error
message. This is related to pr24978, but needs to be handled a little
differently to give a better error message. This is round one of
probably several patches to catch these invalid cases.I am withdrawing this patch. I found a case where this does not work.
Regression tested on x86-64-linux. OK for trunk?
In a situation like this:
real :: r = 1.0
type (tmp1) tmp2
Followed by a DATA statement that initialize the 'a' , the patch issues an
error, even though 'a' has not been initialized previously.
Back to the drawing board. I will have to catch this case with the other patch
I am working on which should (ha ha) handle all cases. Derived types is the
most difficult portion.