https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65996
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't have mpi installed, so it is hard to find out if you get an error or not - your testcase is clearly not self-contained; I certainly do get an error and correct abort after that.