-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
SILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageassertion failureBug → crash: An assertion failureBug → crash: An assertion failurebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.classFeature → type declarations: Class declarationsFeature → type declarations: Class declarationscompilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaredeclarationsFeature: declarationsFeature: declarationsexpressionsFeature: expressionsFeature: expressionsgenericsFeature: generic declarations and typesFeature: generic declarations and typeslet & varFeature: constant and variable declarationsFeature: constant and variable declarationsmember expressionsFeature → expressions: Member expressionsFeature → expressions: Member expressionspack expansionsFeature → expressions: Pack expansion expressionsFeature → expressions: Pack expansion expressionsparameter packsFeature → generics: Parameter packsFeature → generics: Parameter packsregressionswift 6.0
Description
class Thing<T> {
var value: T
init(_ value: T) { self.value = value }
func combineThings<each U>(head: Thing<T>, tail: repeat Thing<each U>) {
let _ = Thing<(T, repeat each U)>((head.value, repeat (each tail).value))
}
}
This crashes on the latest nightly (Swift version 5.11-dev (LLVM 82306b901067e3c, Swift cabb5e109fa373f)
) with:
SILGenExpr.cpp:6514: swift::Lowering::RValue swift::Lowering::SILGenFunction::emitRValue(swift::Expr *, swift::Lowering::SGFContext): Assertion `!E->getType()->hasLValueType() && "l-values must be emitted with emitLValue"' failed.
It does not crash on 5.9 though.
Metadata
Metadata
Assignees
Labels
SILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageassertion failureBug → crash: An assertion failureBug → crash: An assertion failurebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.classFeature → type declarations: Class declarationsFeature → type declarations: Class declarationscompilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaredeclarationsFeature: declarationsFeature: declarationsexpressionsFeature: expressionsFeature: expressionsgenericsFeature: generic declarations and typesFeature: generic declarations and typeslet & varFeature: constant and variable declarationsFeature: constant and variable declarationsmember expressionsFeature → expressions: Member expressionsFeature → expressions: Member expressionspack expansionsFeature → expressions: Pack expansion expressionsFeature → expressions: Pack expansion expressionsparameter packsFeature → generics: Parameter packsFeature → generics: Parameter packsregressionswift 6.0