Skip to content

[SourceKit] Add test case for crash triggered in swift::configureImplicitSelf(…) #542

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

Merged
merged 1 commit into from
Dec 15, 2015
Merged

[SourceKit] Add test case for crash triggered in swift::configureImplicitSelf(…) #542

merged 1 commit into from
Dec 15, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

found code completion token A at offset 129
swift-ide-test: /path/to/swift/lib/AST/Decl.cpp:3439: swift::Type getSelfTypeForContainer(swift::AbstractFunctionDecl *, bool, bool, swift::GenericParamList **): Assertion `containerTy && "stand alone functions don't have 'self'"' failed.
9  swift-ide-test  0x0000000000931a10 swift::configureImplicitSelf(swift::TypeChecker&, swift::AbstractFunctionDecl*, swift::GenericParamList*&) + 176
12 swift-ide-test  0x0000000000937447 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
13 swift-ide-test  0x0000000000906072 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
15 swift-ide-test  0x00000000008647a6 swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 230
16 swift-ide-test  0x00000000007742a4 swift::CompilerInstance::performSema() + 3316
17 swift-ide-test  0x000000000071cbd3 main + 35027
Stack dump:
0.  Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1.  While type-checking 'a' at <INPUT-FILE>:2:18

…icitSelf(swift::TypeChecker&, swift::AbstractFunctionDecl*, swift::GenericParamList*&)

Stack trace:

```
found code completion token A at offset 129
swift-ide-test: /path/to/swift/lib/AST/Decl.cpp:3439: swift::Type getSelfTypeForContainer(swift::AbstractFunctionDecl *, bool, bool, swift::GenericParamList **): Assertion `containerTy && "stand alone functions don't have 'self'"' failed.
9  swift-ide-test  0x0000000000931a10 swift::configureImplicitSelf(swift::TypeChecker&, swift::AbstractFunctionDecl*, swift::GenericParamList*&) + 176
12 swift-ide-test  0x0000000000937447 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
13 swift-ide-test  0x0000000000906072 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
15 swift-ide-test  0x00000000008647a6 swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 230
16 swift-ide-test  0x00000000007742a4 swift::CompilerInstance::performSema() + 3316
17 swift-ide-test  0x000000000071cbd3 main + 35027
Stack dump:
0.	Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1.	While type-checking 'a' at <INPUT-FILE>:2:18
```
lattner added a commit that referenced this pull request Dec 15, 2015
…gureimplicitself

[SourceKit] Add test case for crash triggered in swift::configureImpl…
@lattner lattner merged commit e03bd3e into swiftlang:master Dec 15, 2015
@lattner
Copy link
Contributor

lattner commented Dec 15, 2015

Nice!

@practicalswift practicalswift changed the title [SourceKit] Add test case for crash triggered in swift::configureImpl… [SourceKit] Add test case for crash triggered in swift::configureImplicitSelf(…) Dec 16, 2015
kateinoigakukun pushed a commit to kateinoigakukun/swift that referenced this pull request Apr 16, 2020
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants