Open ellishg opened 3 weeks ago
CC @slavapestov
I've notice the error is suppressed if we first assign a
to a local variable.
local a = a
foo(a)
foo(a)
Just confirmed that this is still failing after https://github.com/swiftlang/swift/pull/76238.
Description
SIL verification is failing with
when using an
associatedtype
sometimes.Reproduction
Stack dump
Expected behavior
The compiler should not crash
Environment
I'm on branch close to
release/6.0
.Additional information
I only observed the crash when
-Osize
was used.The verification is failing here: https://github.com/swiftlang/swift/blob/b6a0162c6482473531418015deb98be90d48abd4/lib/SIL/Verifier/SILVerifier.cpp#L1982-L1985
This seems oddly similar to https://github.com/swiftlang/swift/issues/73896 (dup of https://github.com/swiftlang/swift/issues/64621 and https://github.com/swiftlang/swift/issues/60547). I'm filing a new issue because the stack trace is different.