*ping* Re: [Patch, Fortran] Avoid segfault in conformable_arrays
Tobias Burnus
burnus@net-b.de
Sun May 5 13:08:00 GMT 2013
Ping.
http://gcc.gnu.org/ml/fortran/2013-04/msg00272.html
Also pending: use-associated NULL() at
http://gcc.gnu.org/ml/fortran/2013-05/msg00006.html
Tobias Burnus wrote:
> The issue was found by Reinhold Bader when testing the Fortran-Dev
> branch (thanks!), but it also affects GCC 4.6 and later.
>
> The patch is rather obvious: The segfault occured as
> tail->u.ar.start[i] == NULL. An alternative is to could use "continue"
> instead of "break".
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
> Tobias
>
> PS: The test case is invalid Fortran 2003 but valid Fortran 2008. As
> gfortran lacks that feature, it unconditionally rejects the test case.
> Work around is to add a "(1)" to the alloc-expr.
More information about the Fortran
mailing list