File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -6316,7 +6316,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
63166316 SILType::getPrimitiveObjectType (indexedElementType);
63176317 auto substTargetElementSILType =
63186318 targetElementSILType.subst (F.getModule (),
6319- substTypes, substConformances);
6319+ substTypes, substConformances,
6320+ CanGenericSignature (),
6321+ SubstFlags::PreservePackExpansionLevel);
63206322 requireSameType (indexedElementSILType, substTargetElementSILType,
63216323 " lanewise-substituted pack element type didn't "
63226324 " match expected element type" );
Original file line number Diff line number Diff line change 1+ // RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
2+
3+ // https://github.com/swiftlang/swift/issues/75329
4+
5+ struct GPack1 < each P , T> { }
6+ struct GPack2 < each P > {
7+ struct G < T> { }
8+ }
9+
10+ func test< each T > (
11+ example1: repeat GPack1 < repeat each T , each T > ,
12+ example2: repeat GPack2 < repeat each T > . G < each T >
13+ ) {
14+ let _ = ( repeat each example1) // Boom
15+ }
You can’t perform that action at this time.
0 commit comments