[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-fortran
Subject: Re: [PATCH] PR fortran/36192 -- Check for valid BT_INTEGER
From: Dominique_d'Humières <dominiq () lps ! ens ! fr>
Date: 2015-10-26 16:29:29
Message-ID: 9220921E-96DE-4F32-923F-512CF5747E32 () lps ! ens ! fr
[Download RAW message or body]
> … . 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 <dominiq@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
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic