Swift Decimal binary integer generic initializer fatal error

I am trying to use initialize a Decimal type using its generic binary integer exactly initializer but it keeps crashing with a fatal error regardless of the value used:

Code to reproduce the issue:

let binaryInteger = -10
let decimal = Decimal(exactly: binaryInteger)   // error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).

Is it a known bug?

Replies

Raise it as a bug. If it's already known about they'll have more impetus to fix it because more people are experiencing it.

It crashes also with positive numbers.

It crashed also in Xcode 13.4.

let decimal = Decimal(binaryInteger)

doesn't crash. So issue is with exactly.

Definitely, that's a bug.

Yes that's why I mentioned "regardless of the value used". It crashes with any value. The generic initializer doesn't work at all. The solution proposed would require me to create multiples methods for all kind of integers and that's not an option.