Compiler crash with InlineArray
and span when -swift-version 6
is specified
#81786
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Uh oh!
There was an error while loading. Please reload this page.
Description
The following program attempts to get the
Span
of anInlineArray
and causes a compiler crash, but ONLY when-swift-version 6
is specified in the compilation line.Reproduction
Stack dump
Expected behavior
An (embedded mode) object file is properly emitted.
Environment
Additional information
Additional notes:
-swift-version 6
is specified, and if theInlineArray<4, Int>
is replaced with a heap allocated[Int]
, then this crash goes away.-swift-version 6
is not specified, then bothInlineArray
and[Int]
work correctly.The text was updated successfully, but these errors were encountered: