When trying to use -target x86_64-pc-windows-gnu and SEH with -fasync-exceptions (/EAh), clang crashes. From the source code it seems like this is unsupported - if this is really unsupported please tell me. Even if not I don't think clang should crash when someone still tries to use it.
Everything works if I don't pass -Xclang -fasync-exceptions to clang.
Problem Description
When trying to use
-target x86_64-pc-windows-gnu
and SEH with-fasync-exceptions
(/EAh), clang crashes. From the source code it seems like this is unsupported - if this is really unsupported please tell me. Even if not I don't think clang should crash when someone still tries to use it.Everything works if I don't pass
-Xclang -fasync-exceptions
to clang.Repro Steps
Source code, compiled with:
clang a.cpp -Xclang -exception-model=seh -Xclang -x86-asm-syntax=intel -Xclang -funwind-tables=2 -Xclang -fcxx-exceptions -Xclang -fexceptions -Xclang -fasync-exceptions -target x86_64-pc-windows-gnu -S
Stack trace:
Command: