Created attachment 10493
testcase
This is extracted (and simplified a bit) from 8886 so that we have one case per
bug.
With gcc 4.8 the main function compiles down to just
main:
subq $24, %rsp
movl $97, %esi
movl $.LC0, %edi
xorl %eax, %eax
movb $98, 9(%rsp)
call printf
movsbl 9(%rsp), %esi
movl $.LC0, %edi
xorl %eax, %eax
call printf
xorl %eax, %eax
addq $24, %rsp
ret
inline-devirt-4.C
(1020 bytes, text/x-c++src)