Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7451] print("one") [2] crashes dev snapshot compiler (but not def toolchain) #49994

Closed
jepers opened this issue Apr 17, 2018 · 3 comments
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression swift 4.2

Comments

@jepers
Copy link

jepers commented Apr 17, 2018

Previous ID SR-7451
Radar rdar://problem/39514009
Original Reporter @jepers
Type Bug
Status Closed
Resolution Done
Environment

Xcode 9.3, default toolchain vs recent snapshot

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 4.2Regression, CompilerCrash
Assignee @jepers
Priority Medium

md5: 5a1066fdb34d8da678d1b64c59f206d6

Issue Description:

print("hello") [123]

// Compiling this (invalid) program with the default toolchain of Xcode 9.3
// will produce an expected compile time error (although perhaps with a
// somewhat unexpected error message):
// Value of tuple type '()' has no member 'subscript'

// But compiling it with a recent development snapshot will crash the compiler.

// (Btw, perhaps this is something that should be expected, eg given that the
// development snapshots are not built in the same way as official toolchains?
// If so, maybe it's not worth filing this kind of compiler crashers?)
@belkadan
Copy link
Contributor

   Assertion failed: (!baseName.isSpecial() && "Can't retrieve the identifier of a special base name"), function getBaseIdentifier, file /Volumes/Data/swift-public/swift/include/swift/AST/Identifier.h, line 447.
7  swift                    0x00000001109ddc7f (anonymous namespace)::FailureDiagnosis::diagnoseMemberFailures(swift::Expr*, swift::Expr*, swift::constraints::ConstraintKind, swift::DeclName, swift::FunctionRefKind, swift::constraints::ConstraintLocator*, llvm::Optional<std::__1::function<bool (llvm::ArrayRef<swift::constraints::OverloadChoice>)> >, bool) + 3919
8  swift                    0x00000001109e56a0 (anonymous namespace)::FailureDiagnosis::diagnoseSubscriptErrors(swift::SubscriptExpr*, bool) + 416
9  swift                    0x00000001109cdc43 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 83

cc @xedin

@xedin
Copy link
Member

xedin commented Apr 18, 2018

@swift-ci create

@xedin
Copy link
Member

xedin commented Apr 21, 2018

Thank you for report, @jepers! PR #16056 has been merged into master, so you can verify that the problem has been fixed using the next day's nightly snapshot of the master.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression swift 4.2
Projects
None yet
Development

No branches or pull requests

4 participants