Compiler crash on internal Foundation import #70644
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
indexing
Area → source tooling: AST indexing
triage needed
This issue needs more specific labels
Description
During development I accidentally added internal import of Foundation library. The product/target itself compiles normally, but compilation of target which depends on that target fails with a compiler crash.
Reproduction
internal import Foundation
and compile any dependant target. if remove
internal
keyword the program compiles normally.Stack dump
Expected behavior
Compilation error, but not crash.
Environment
swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: