https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412
--- Comment #10 from Roland Schulz <roland at rschulz dot eu> --- Created attachment 33520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33520&action=edit Slightly modified testcase This slightly modified testcase in which the return value isn't stored, still segfaults for me. With the 32bit mingw64 binary ((i686-win32-dwarf-rev1, Built by MinGW-W64 project) 4.9.1) it is OK, but with the 64bit binary ((x86_64-win32-seh-rev1, Built by MinGW-W64 project) 4.9.1) it segfaults.