https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86141
--- Comment #17 from ASA <aaron_sami_abassi at hotmail dot com> --- It would seem that the heuristics problem has something to do with the same function being called more than once from main. I conducted the following experiments: * Repeating the call to DisplayView1Type * Commenting the second call to DisplayViewType And in each case when a specific function was called more than once, the compiler refused to inline the function invocation from main. In case this helps.