This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran] PR 44742 - Avoid ICE when -fmax-array-constructor is exeeded
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 06 Jul 2010 13:33:09 -0700
- Subject: Re: [Patch, Fortran] PR 44742 - Avoid ICE when -fmax-array-constructor is exeeded
- References: <4C335569.firstname.lastname@example.org>
On 07/06/2010 09:10 AM, Tobias Burnus wrote:
The patch adds a diagnostic for "constant" (F95, F2008; F2003:
"initialization") expressions where the array constructor exceeds the
limit given by -fmax-array-constructor -- thus fixing an ICE.
The error message has been copied from array.c's gfc_expand_constructor.
Thus, if you don't like it, one should change it there and in
trans-array.c's gfc_conv_array_initializer as well. (Actually, I do not
like the wording much, but did not immediately come up with something else.)
Build and currently regtesting on x86-64-linux.
OK for the trunk when it succeeded?
* * *
The patch (as posted in the PR) was approved by Jerry on IRC - I thus
intent to commit it after regtesting finished.
Yes, OK and thanks for patch.