-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselffailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressionBug → internal error: Failed to produce diagnostic for expressionfor-in loopsFeature: for-in loopsFeature: for-in loopsswift 5.9type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
Description
I get unexpected error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
when compiling following code.
Steps to reproduce
Compile following code:
for i in [Int64.min, Int32.min] + (0...10) { continue }
Expected behavior
The code should compile or proper error should be printed. Note this compiles just fine:
for i in [Int64.min, Int32.min] { continue }
for i in [Int64.min] + (0...10) { continue }
Environment
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: x86_64-apple-macosx13.0
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselffailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressionBug → internal error: Failed to produce diagnostic for expressionfor-in loopsFeature: for-in loopsFeature: for-in loopsswift 5.9type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis