Skip to content

[SIL] Add test case for crash triggered in swift::SILDeclRef::SILDeclRef(…) #696

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 21, 2015
Merged

[SIL] Add test case for crash triggered in swift::SILDeclRef::SILDeclRef(…) #696

merged 1 commit into from
Dec 21, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

<stdin>:3:8: error: expected '{' in class
class C}sil_vtable C{#C
       ^
<stdin>:3:8: error: extraneous '}' at top level
class C}sil_vtable C{#C
       ^

sil-opt: /path/to/swift/lib/SIL/SILDeclRef.cpp:144: swift::SILDeclRef::SILDeclRef(swift::ValueDecl *, SILDeclRef::Kind, swift::ResilienceExpansion, unsigned int, bool): Assertion `(kind == Kind::IVarInitializer || kind == Kind::IVarDestroyer) && "can only create ivar initializer/destroyer SILDeclRef for class"' failed.
8  sil-opt         0x00000000009cf6e6 swift::SILDeclRef::SILDeclRef(swift::ValueDecl*, swift::SILDeclRef::Kind, swift::ResilienceExpansion, unsigned int, bool) + 150
10 sil-opt         0x0000000000a26959 swift::Parser::parseSILVTable() + 905
11 sil-opt         0x00000000009f59e3 swift::Parser::parseTopLevel() + 707
12 sil-opt         0x00000000009f0d3f swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 207
13 sil-opt         0x00000000007391a6 swift::CompilerInstance::performSema() + 2918
14 sil-opt         0x0000000000723dfc main + 1916
Stack dump:
0.  Program arguments: sil-opt -enable-sil-verify-all
1.  With parser at source location: <stdin>:3:24

…Ref(swift::ValueDecl*, swift::SILDeclRef::Kind, swift::ResilienceExpansion, unsigned int, bool)

Stack trace:

```
<stdin>:3:8: error: expected '{' in class
class C}sil_vtable C{#C
       ^
<stdin>:3:8: error: extraneous '}' at top level
class C}sil_vtable C{#C
       ^

sil-opt: /path/to/swift/lib/SIL/SILDeclRef.cpp:144: swift::SILDeclRef::SILDeclRef(swift::ValueDecl *, SILDeclRef::Kind, swift::ResilienceExpansion, unsigned int, bool): Assertion `(kind == Kind::IVarInitializer || kind == Kind::IVarDestroyer) && "can only create ivar initializer/destroyer SILDeclRef for class"' failed.
8  sil-opt         0x00000000009cf6e6 swift::SILDeclRef::SILDeclRef(swift::ValueDecl*, swift::SILDeclRef::Kind, swift::ResilienceExpansion, unsigned int, bool) + 150
10 sil-opt         0x0000000000a26959 swift::Parser::parseSILVTable() + 905
11 sil-opt         0x00000000009f59e3 swift::Parser::parseTopLevel() + 707
12 sil-opt         0x00000000009f0d3f swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 207
13 sil-opt         0x00000000007391a6 swift::CompilerInstance::performSema() + 2918
14 sil-opt         0x0000000000723dfc main + 1916
Stack dump:
0.	Program arguments: sil-opt -enable-sil-verify-all
1.	With parser at source location: <stdin>:3:24
```
gribozavr added a commit that referenced this pull request Dec 21, 2015
…sildeclref

[SIL] Add test case for crash triggered in swift::SILDeclRef::SILDeclRef(…)
@gribozavr gribozavr merged commit d93e489 into swiftlang:master Dec 21, 2015
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