[Bug c++/82107] O2 optimisation on amd64 leads to error

2017-09-05 Thread loquens at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82107 --- Comment #1 from loquens at yandex dot ru --- Additional research found, that error produced by -O1 and -finline-small-functions -fipa-icf -foptimize-sibling-calls. All three flags must be present to get an error. If you exclude -foptimize

[Bug c++/82107] New: O2 optimisation on amd64 leads to error

2017-09-05 Thread loquens at yandex dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: loquens at yandex dot ru Target Milestone: --- Created attachment 42129 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42129&action=edit full error example sources Complete source code attached. Steps to reproduce t