https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931

ishikawa,chiaki <ishikawa at yk dot rim.or.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ishikawa at yk dot rim.or.jp

--- Comment #10 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
Created attachment 54483
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54483&action=edit
The source file that exhibits the failure to inline always_inline functions.

I have a similar problem compiling Thunderbird mail client with GCC-12.
A couple of always_inline functions cannot be inlined and errors are diagnosed.

I am a bit perplexed that gcc-10 and gcc-11 did not seem to have the problem.
Also, I am wondering if I am seeing the same issue discussed here or not
because I think the functions are declared in the proper topological order
(that is, the function that is called is declared in a manner that the callee
is defined before the caller.)
Yes, there is an indirect function call, that may be the reason of the failure.

I am attaching a preprocessed source file and the script to compile it to cause
the failure. 
The presence of -Og is essential. If we remove -Og, the compilation succeeds.

Reply via email to