https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127003
--- Comment #1 from Ulrich Telle <ulrich.telle at gmx dot de> --- Created attachment 65427 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65427&action=edit Code snippet from the source code which exhibits the LTO issue The snippet is part of a demo application source code, where the LTO issue occurs. The demo application is part of the wxSQLite3 project (https://github.com/utelle/wxsqlite3). The issue happens at line 50 of this code. The LTO error on linking the demo application occurs only for the full demo application. I really tried hard to reduce the code size to reproduce the issue with less code, but as I already mentioned in my bug report I was not able to reproduce it with a small example. I literally spent hours on trying to remove most parts of the demo application code, but then the LTO issue did not surface anymore. So, the issue seems to be related to the amount (and maybe complexity) of the code. And I didn't find a simpler way to reproduce it than executing the steps already described in my bug report.
