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-13023] Tuple splat fix with type mismatch crash compiler #55468

Open
omochi opened this issue Jun 16, 2020 · 0 comments
Open

[SR-13023] Tuple splat fix with type mismatch crash compiler #55468

omochi opened this issue Jun 16, 2020 · 0 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@omochi
Copy link
Collaborator

omochi commented Jun 16, 2020

Previous ID SR-13023
Radar None
Original Reporter @omochi
Type Bug
Environment
commit 16c9c007af69bce822e79b0a73d6d51ce9e1e729 (HEAD -> master, tag: swift-DEVELOPMENT-SNAPSHOT-2020-06-13-a)
Merge: 8cb1331c75e 20dbe3fb220
Author: Saleem Abdulrasool <compnerd@compnerd.org>
Date:   Sat Jun 13 08:58:56 2020 -0700

    Merge pull request #&#8203;32350 from compnerd/vim-syntax
    
    vim: improve syntax highlighting rules
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee @omochi
Priority Medium

md5: b717936b62b1806624de60a33c760d09

Issue Description:

This code crash compiler.

func f(_ a: Int, _ b: Int) {}
f((1, false))

It causes tuple splat fix in matchCallArguments and create locator that is Call > apply argument > arg #&#8203;1 to param #&#8203;1.
In repairFailures, it attempt to create AllowArgumentMismatch with argument #1.
But there are only one tuple argument, so it take null pointer.

It relates to this:
https://bugs.swift.org/browse/SR-13002

CC: @xedin @LucianoPAlmeida

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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.
Projects
None yet
Development

No branches or pull requests

1 participant