[SR-14551] Failed to produce diagnostic for expression" on SwiftUI View #56903
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
SwiftUI
Flag: Related to (but not an issue with) SwiftUI
type checker
Area → compiler: Semantic analysis
Environment
Xcode 12.5 (12E262)
Swift 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Additional Detail from JIRA
md5: 5c5307c212da92f31e9c215fbbcb2360
Issue Description:
The following code fails to compile with a "error: failed to produce diagnostic for expression; please submit a bug report" error.
Note the bogus
Text("preset")
problem:If I comment out either the VStack or the Spacer, I get the expected error message:
The text was updated successfully, but these errors were encountered: