If I create a brand new project in Xcode14b3 with the language to Swift, then set the toolchain to the 5.6.2 release toolchain (downloaded from swift.org), the compiler will crash doing a build.
This makes it difficult for us in Chromium to pin on a specific version of Swift regardless of the Xcode that the developer has installed (mostly to prevent surprises and different behavior seen by different developers).
Is this a known issue? The 5.7 toolchain works fine, but it's not release yet, so we don't want to pin to it.
The top of the stack (it's rather long...) looks like
8. While type-checking expression at [/Users/pinkerton/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/Foundation.framework/Modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:7849:17 - line:7849:57] RangeText="accumulator.unicodeScalars.append(scalar"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010913a017 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x0000000109139235 llvm::sys::RunSignalHandlers() + 85
2 swift-frontend 0x000000010913a650 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff80fc0fdfd _sigtramp + 29
4 libsystem_platform.dylib 0x00007fee49a1a830 _sigtramp + 18446744031730903632
5 libsystem_c.dylib 0x00007ff80fb45d24 abort + 123
6 libsystem_c.dylib 0x00007ff80fb450cb err + 0
7 swift-frontend 0x00000001095af063 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclNameRef, swift::OptionSet<swift::NameLookupFlags, unsigned int>) (.cold.2) + 35
8 swift-frontend 0x00000001051f9ada swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclNameRef, swift::OptionSet<swift::NameLookupFlags, unsigned int>) + 554
9 swift-frontend 0x00000001050c3859 swift::constraints::ConstraintSystem::lookupMember(swift::Type, swift::DeclNameRef) + 217
10 swift-frontend 0x00000001050284e7 swift::constraints::ConstraintSystem::performMemberLookup(swift::constraints::ConstraintKind, swift::DeclNameRef, swift::Type, swift::FunctionRefKind, swift::constraints::ConstraintLocator*, bool) + 3399
11 swift-frontend 0x000000010502abc1 swift::constraints::ConstraintSystem::simplifyMemberConstraint(swift::constraints::ConstraintKind, swift::Type, swift::DeclNameRef, swift::Type, swift::DeclContext*, swift::FunctionRefKind, llvm::ArrayRef<swift::constraints::OverloadChoice>, swift::OptionSet<swift::constraints::ConstraintSystem::TypeMatchFlags, unsigned int>, swift::constraints::ConstraintLocatorBuilder) + 561
12 swift-frontend 0x00000001050cd598 swift::constraints::ConstraintSystem::addValueMemberConstraint(swift::Type, swift::DeclNameRef, swift::Type, swift::DeclContext*, swift::FunctionRefKind, llvm::ArrayRef<swift::constraints::OverloadChoice>, swift::constraints::ConstraintLocatorBuilder) + 248
13 swift-frontend 0x0000000104ffc4e8 (anonymous namespace)::ConstraintGenerator::addMemberRefConstraints(swift::Expr*, swift::Expr*, swift::DeclNameRef, swift::FunctionRefKind, llvm::ArrayRef<swift::ValueDecl*>) + 568
14 swift-frontend 0x0000000104ff6d27 swift::ASTVisitor<(anonymous namespace)::ConstraintGenerator, swift::Type, void, void, void, void, void>::visit(swift::Expr*) + 11015
15 swift-frontend 0x0000000104ff1e24 (anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*) + 196
16 swift-frontend 0x0000000105473479 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 137
17 swift-frontend 0x00000001054742c9 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 3801
18 swift-frontend 0x0000000105472c49 swift::Expr::walk(swift::ASTWalker&) + 73
... (about 30 more frames)
-pink