https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86141
ASA <aaron_sami_abassi at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|7.3.0 |8.1.1 --- Comment #19 from ASA <aaron_sami_abassi at hotmail dot com> --- Regarding the source code linked to in comment 18: I experimented by changing the linkage of the FractionalCalculator function template over to external linkage (removed the static and inline keywords) and the resulting Assembly code was 429 lines long. Ironically the compiler decided to inline the call to the externally linked template instance "FractionalCalculator< ReducingArithmetic< Natural > >". This seems to be a decent workaround since other compilers seem to inline the call in this experimental case as well, though GNU should ultimately address this optimization bug. Please note that I did not commit this experimental version to GitHub.