https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 --- Comment #1 from ASA <aaron_sami_abassi at hotmail dot com> --- I should add that without the static storage duration specifier even without const specified, it does inline the function invocation.