> … . The testcase demonstrates that the segfault in F951 (caused by calling
>  mpz_set with an invalid mpz_t) does not happen. 

If I am not mistaken, the test compiles without the patch (with different 
messages at least on x86_64-apple-darwin14

/opt/gcc/work/gcc/testsuite/gfortran.dg/pr36192.f90:6:18:

   real, dimension(n,d) :: x      ! { dg-error "of INTEGER type|of INTEGER 
type" }
                  1
Error: Expression at (1) must be of INTEGER type, found REAL
/opt/gcc/work/gcc/testsuite/gfortran.dg/pr36192.f90:6:20:

   real, dimension(n,d) :: x      ! { dg-error "of INTEGER type|of INTEGER 
type" }
                    1
Error: Expression at (1) must be of INTEGER type, found REAL
/opt/gcc/work/gcc/testsuite/gfortran.dg/pr36192.f90:6:27:

   real, dimension(n,d) :: x      ! { dg-error "of INTEGER type|of INTEGER 
type" }
                           1
Error: The module or main program array 'x' at (1) must have constant shape
/opt/gcc/work/gcc/testsuite/gfortran.dg/pr36192.f90:7:2:

   x(1,:) = (/ 1.0, 0.0 /)
  1
Error: Different shape for array assignment at (1) on dimension 1 (0 and 2)

Dominique

> Le 26 oct. 2015 à 11:15, Dominique d'Humières <domi...@lps.ens.fr> a écrit :
> 
> With the patch compiling the original test still gives
> 
> …
> pr36192.f90:39:10:
> 
>        x_n, v_n, &              ! Configuration at t+dt with step dt
>          1
> Error: The module or main program array 'x_n' at (1) must have constant shape
> f951: internal compiler error: Segmentation fault: 11
> 
> Dominique
> 

Reply via email to