https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81021
--- Comment #24 from Martin Liška <marxin at gcc dot gnu.org> --- Just run with current trunk and it works (it fails after a minute in ==13736==ERROR: AddressSanitizer: stack-overflow on address 0x2adb9b406e48 (pc 0x0000067d8638 bp 0x2adb9b408020 sp 0x2adb9b406e30 T1) So I'm going to test gcc-7-branch and I hope this patch is missing: commit 5b64e274ea8c9aaedcebc1d6ad285a11e64ab086 Author: marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Jun 30 08:51:00 2017 +0000 Call BUILT_IN_ASAN_HANDLE_NO_RETURN before BUILT_IN_UNWIND_RESUME (PR sanitizer/81021). 2017-06-30 Martin Liska <mli...@suse.cz> PR sanitizer/81021 * g++.dg/asan/pr81021.C: New test. 2017-06-30 Martin Liska <mli...@suse.cz> PR sanitizer/81021 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN before BUILT_IN_UNWIND_RESUME when ASAN is used.