https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027
--- Comment #17 from Victor Porton <porton at narod dot ru> --- Created attachment 42666 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42666&action=edit Minimal example reprising the bug I've created the minimal example reprising the bug. The bug is actually awful: Just four innocent (doing nothing) source files cause the program to hang infinitely despite it was asked to do none. Note that the bug is triggered only for dynamic libraries. To reprise the bug unpack the attached minimal.tar.gz archive run make all && make run It stucks infinitely. Now we know for sure: It is a GCC (or maybe linker) bug, not Ahven one.