https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71959
--- Comment #3 from Christopher Guckes <christopher.guc...@torq-dev.de> --- I've investigated a bit further. The problem seems to occur only if the routine is passed by reference. Maybe that helps you isolate the problem any further.