https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82693
--- Comment #6 from Ivan Sorokin <vanyacpp at gmail dot com> --- I added files to reproduce the issue: caller.cpp and callee.cpp are the files that need to be compiled with different compilers. empty.h is common header. build.sh is a shell script that compiles and run all four combinations caller/callee gcc/clang.