https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81004
Bug ID: 81004 Summary: linking failed with -flto Product: gcc Version: 7.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: a3at.mail at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- After upgrading to gcc 7.1 -flto build failed during linking, I tried to reduce amount of involved sources, but this is what I got: https://github.com/azat-archive/gcc7-lto-linking-issue For this you need: - cmake - boost program_options (I tried with 1.64) - gcc 7.1 - libstdc++ (And I added Dockerfile/docker-compose if you are using it). Of course this is not the desired testcase, so if I can make it shorter, I will get back to you, Thanks!