https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109942
Simon Pfahler <simon-pfahler at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from Simon Pfahler <simon-pfahler at gmx dot de> --- I see your point, and have realized that there is no way around explicitly stating the return types. That was wishful thinking on my part. Still, I feel like the behavior should be identical for any optimization level, but this is more personal opinion and of little relevance for standard-compliance. Marked this issue as resolved, since even if it is a bug (as you said, debatable), it certainly isn't a relevant one.