[C++-Interop][Swift 5.9] Invoking a manually defaulted non-noexcept C++ constructor from Swift results in a compiler crash in IRGen #65891
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
triage needed
This issue needs more specific labels
Invoking a manually defaulted non-noexcept C++ constructor from Swift results in a compiler crash in IRGen.
This affects Swift 5.9 but not 5.8, it is likely due to the recently added exception handling.
Repro (zip file attached as well, modify the makefile with your Swift path and run make):
NOTE: The crash does not happy if S's constructor is marked noexcept (ie
struct S { S() noexcept = default; };
).Swift invocation:
Module Map is simply:
Compiler Invocation:
Stack trace:
Swift5.9CxxInteropNoNoExceptCompilerCrash.zip
The text was updated successfully, but these errors were encountered: