public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43996] ICE in gfc_conv_array_initializer due to incomplete simplification of init expressions
[not found] <bug-43996-4@http.gcc.gnu.org/bugzilla/>
@ 2014-04-30 12:31 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-04-30 12:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43996
--- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The following patch fixes the ICE without reverting the fix for pr40472:
--- ../_clean/gcc/fortran/simplify.c 2014-04-27 12:52:10.000000000 +0200
+++ gcc/fortran/simplify.c 2014-04-30 14:23:46.000000000 +0200
@@ -5939,7 +6021,8 @@ gfc_simplify_spread (gfc_expr *source, g
else
mpz_init_set_ui (size, 1);
- if (mpz_get_si (size)*ncopies > gfc_option.flag_max_array_constructor)
+ if (!gfc_init_expr_flag
+ && mpz_get_si (size)*ncopies > gfc_option.flag_max_array_constructor)
return NULL;
if (source->expr_type == EXPR_CONSTANT)
Indeed compiling the test in comment 8 gives
Error: The number of elements in the array constructor at (1) requires an
increase of the allowed 65535 upper limit. See -fmax-array-constructor option
even if ", PARAMETER" is removed in the line
INTEGER, PARAMETER :: C(N, N) = MATMUL(A, B)
IMO the fix for SPREAD should be extended to all the intrinsics allowed for
initialization.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/43996] ICE in gfc_conv_array_initializer due to incomplete simplification of init expressions
2010-05-05 21:04 [Bug fortran/43996] New: ICE in simplification of spread intrinsic dominiq at lps dot ens dot fr
@ 2010-05-23 15:37 ` dfranke at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-23 15:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from dfranke at gcc dot gnu dot org 2010-05-23 15:37 -------
Adjusted summary to better describe the problem.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in simplification of |ICE in
|spread intrinsic |gfc_conv_array_initializer
| |due to incomplete
| |simplification of init
| |expressions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43996
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-30 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-43996-4@http.gcc.gnu.org/bugzilla/>
2014-04-30 12:31 ` [Bug fortran/43996] ICE in gfc_conv_array_initializer due to incomplete simplification of init expressions dominiq at lps dot ens.fr
2010-05-05 21:04 [Bug fortran/43996] New: ICE in simplification of spread intrinsic dominiq at lps dot ens dot fr
2010-05-23 15:37 ` [Bug fortran/43996] ICE in gfc_conv_array_initializer due to incomplete simplification of init expressions dfranke at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).