Thanks for the quick feedback. The patch has been committed on trunk as rev. 234502 and on gcc-5-branch as rev. 234503 . In attachment three simple test cases; coarray_stop_str.f90 fails because of a syntax error in the check string. I guess the problem is due to the presence of the "STOPPED" string inside the check string; how can I manage this situation? Thanks, Alessandro PS: Paul, I see this as a good exercise before working on Failed Images :-). 2016-03-27 19:14 GMT+02:00 Paul Richard Thomas : > Hi Alessandro, > > The patch is fine for trunk and 5-branch - going on trivial, I would > say! Are you going to add the testcase? > > Thanks a lot! I am impressed that you are doing these between > celebrating your doctorate and preparing for your move :-) > > Paul > > On 27 March 2016 at 17:10, Alessandro Fanfarillo > wrote: >> Dear all, >> >> the attached patch fixes the issue reported by Anton Shterenlikht >> (https://gcc.gnu.org/ml/fortran/2016-03/msg00037.html). The compiler >> delegates the external library to manage the STOP statement in case >> -fcoarray=lib is used. >> >> Built and regtested on x86_64-pc-linux-gnu. >> >> Ok for trunk and gcc-5-branch? > > > > -- > The difference between genius and stupidity is; genius has its limits. > > Albert Einstein