https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87792
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Looks the problematic line is: gcc_assert (DECL_INITIAL (decl) != error_mark_node); so yes, it's somehow connected to __PRETTY_FUNCTION__ initialization. Unfortunately I won't be able to help you as I can't reproduce that on Linux. I don't have any access to mingw machine.