[Bug fortran/66107] ICE on missing parameter value for initialisation (segfault)

2016-09-22 Thread lkrupp at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66107

lkrupp at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||lkrupp at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #3 from lkrupp at gcc dot gnu.org ---
Fixed in revision 240341.

Code now checks to make sure that a parameter character array is initialized
only with constant-length elements.

[Bug fortran/66107] ICE on missing parameter value for initialisation (segfault)

2016-09-22 Thread lkrupp at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66107

--- Comment #2 from lkrupp at gcc dot gnu.org ---
Author: lkrupp
Date: Thu Sep 22 07:07:53 2016
New Revision: 240341

URL: https://gcc.gnu.org/viewcvs?rev=240341&root=gcc&view=rev
Log:
2016-09-21  Louis Krupp  

PR fortran/66107
* gfortran.dg/pr66107.f90: New test.

2016-09-21  Louis Krupp  

PR fortran/66107
* decl.c (add_init_expr_to_sym): Catch variable character length
in parameter array.


Added:
trunk/gcc/testsuite/gfortran.dg/pr66107.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/66107] ICE on missing parameter value for initialisation (segfault)

2015-09-08 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66107

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-09-08
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
I confirm the ICE with 5.2 and trunk (6.0). The first code in comment 0 is
accepted by 4.8 and 4.9 which looks wrong.