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-7479] "apply expression is not marked as throwing or non-throwing" #50022
Comments
The original issue you've reported should be fixed in master, as you've noticed. I'm not sure about the |
Oops, no, that's an assertion failure right? Maybe we can just reuse this report for that. |
Comment by Federico Trimboli (JIRA) Hi Jordan! apply expression is not marked as throwing or non-throwing
(call_expr implicit type='ComparisonResult' arg_labels=_:
(declref_expr implicit type='(Int) -> ComparisonResult' decl=Builtin.(file).reinterpretCast [with Int, ComparisonResult] function_ref=unapplied)
(paren_expr implicit type='(Int)'
(declref_expr implicit type='Int' decl=Foundation.(file).ComparisonResult.init(rawValue:).rawValue function_ref=unapplied)))
0 swift 0x000000010436bbb8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 swift 0x000000010436c2c6 SignalHandler(int) + 694
2 libsystem_platform.dylib 0x00007fff66eecf5a _sigtramp + 26
3 libsystem_platform.dylib 0x000000010872f558 _sigtramp + 2709792280
4 libsystem_c.dylib 0x00007fff66c8a1ae abort + 127
5 swift 0x0000000101d364a3 (anonymous namespace)::Verifier::verifyChecked(swift::ApplyExpr*) + 1331
6 swift 0x0000000101d29aec (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) + 300
7 swift 0x0000000101d3c57f swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 1327
8 swift 0x0000000101d3eba7 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 359
9 swift 0x0000000101d410b5 (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) + 725
10 swift 0x0000000101d3b726 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 310
11 swift 0x0000000101d4091b (anonymous namespace)::Traversal::visitNominalTypeDecl(swift::NominalTypeDecl*) + 475
12 swift 0x0000000101d3b718 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 296
13 swift 0x0000000101d3b5db swift::Decl::walk(swift::ASTWalker&) + 27
14 swift 0x0000000101d28e15 swift::verify(swift::Decl*) + 133
15 swift 0x0000000101b33aab swift::ModuleFile::verify() const + 91
16 swift 0x0000000101b9f388 swift::SerializedModuleLoader::verifyAllModules() + 40
17 swift 0x0000000101cba669 swift::ASTContext::verifyAllLoadedModules() const + 89
18 swift 0x0000000101ae5be1 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int) + 2193
19 swift 0x000000010171d018 swift::CompilerInstance::parseAndCheckTypes(swift::CompilerInstance::ImplicitImports const&) + 744
20 swift 0x000000010171c8f8 swift::CompilerInstance::performSema() + 472
21 swift 0x0000000100bac500 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 1904
22 swift 0x0000000100baad7e swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3310
23 swift 0x0000000100b69133 main + 2051
24 libdyld.dylib 0x00007fff66bde015 start + 1 I think it's a new issue introduced in newer snapshots that wasn't present in the Swift 4.1 release. Should I update the "Environment" info? |
federicotrimboli (JIRA User) I was unable to reproduce this with a recent build from master. Are you still able to reproduce this with recent development builds? |
Comment by Federico Trimboli (JIRA) @rudkx: I'm unable to reproduce this issue with the latest `master` snapshot (2018-04-25) nor with the latest `swift-4.2-branch` snapshot (2018-05-02). Thanks! |
Okay, it looks like this particular issue got fixed all the way, so resolving. |
Environment
Version/Build:
Xcode 9.3 (9E145) with Swift Development Snapshot (2018-04-20).
Configuration:
macOS High Sierra 10.13.4 (17E199)
MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
2.3 GHz Intel Core i5
16 GB 2133 MHz LPDDR3
Intel Iris Plus Graphics 640 1536 MB
Additional Detail from JIRA
md5: 3b78ca3e16983f1843c9fa2b5c16b976
relates to:
Issue Description:
We are getting "apply expression is not marked as throwing or non-throwing" in our project with the latest Swift Development Snapshot.
Was able to reduce the problem within a small project, that I am attaching to the Radar but would prefer to not attach here.
The text was updated successfully, but these errors were encountered: