https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845
--- Comment #8 from Sergey Organov <sorganov at gmail dot com> --- I'm trying to upgrade from 3.4.4 to 5.2.0, and I used -freg-struct-return for years with 3.4.4 with no issues. Not that there is huge amount of code that actually uses functions returning structures, but the project itself is about 5Mb of compiled code. I immediately ran to this ICE compiling real code, and then narrowed it down to these toy examples. I can easily check any code on 3.4.4, but I doubt it'd be productive for me to dig into current gcc sources I'm not familiar with, especially provided you doubt the feature is to be at all supported. On the other hand, I doubt the case I provided works in 5.2.0 by pure accident either, and there is some hope a fix for the ICE is rather simple for somebody who is familiar with gcc code base.