https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119864
--- Comment #13 from Nathaniel Shead <nshead at gcc dot gnu.org> --- (In reply to Pilar Latiesa from comment #12) > If sum isn't a template it compiles fine with the current trunk: > https://godbolt.org/z/4cGfTocj8 Right; it's only an issue if we need to stream the body of the function (i.e. if the function is a template, or marked 'inline'/'constexpr'/etc.)