This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

*ping* Re: [Patch, Fortran] Avoid segfault in conformable_arrays


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]