https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
--- Comment #24 from Jürgen Reuter <juergen.reuter at desy dot de> --- Actually, the volatile attribute conflicts with the intent(in) of the final variable. But making the function result variable 'integral' volatile, does the job. Thanks for the suggestion. And sorry again for not producing a smaller case.