https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92254
--- Comment #1 from Dmitry G. Dyachenko <dimhen at gmail dot com> --- $ cat a.i typedef unsigned (*c)(void *, void *); typedef struct { c d; } e; unsigned bar(void *, void *); unsigned baz(void *, void *); static const e f[] = {{bar}, {baz}}; const e *foo() { return f; } $ cat b.i unsigned f1(int *, unsigned short); unsigned baz(void *c, void *d) { int *a = c; (void)d; if (!c) return 1; return f1(a, 0); } $ cat c.i unsigned f1(int *, unsigned short); unsigned bar(void *c, void *d) { int *a = c; (void)d; if (!c) return 1; return f1(a, 0); } $ cat d.i int b, c; int a(int *); unsigned f1(int *d, unsigned short e) { b = 0; if (e) { a(d); if (c) return 0; } return a(d); } $ cat x.ver { global: foo; local: *; }; $ gcc -fpreprocessed -O2 -flto -c a.i b.i c.i d.i $ gcc -flto -fPIC -DPIC -shared a.o b.o c.o d.o -Wl,-version-script -Wl,/home/dimhen/errs/gcc10/PR92254/x.ver -o libso.so during IPA pass: inline lto1: internal compiler error: in inline_small_functions, at ipa-inline.c:2000 0x900b07 inline_small_functions /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2000 0x900b07 ipa_inline /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2615 0x900b07 execute /home/dimhen/src/gcc_current/gcc/ipa-inline.c:3023 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: /home/dimhen/arch-gcc/gcc_277504/bin/gcc returned 1 exit status compilation terminated. /usr/local/binutils_current/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status