Skip to content

[SR-15801] compiler crash "there should be no duplicate decls" while building swift-corelibs-foundation #58078

Closed
@QuietMisdreavus

Description

@QuietMisdreavus
Previous ID SR-15801
Radar rdar://problem/88299954
Original Reporter @QuietMisdreavus
Type Bug
Environment

Swift snapshot, current main branch

Additional Detail from JIRA
Votes 0
Component/s swift
Labels Bug
Assignee @QuietMisdreavus
Priority Medium

md5: 541cf6968fe028b7f3806cb651d9d69f

Issue Description:

https://ci.swift.org/job/swift-corelibs-foundation-PR-macOS/2804/console

This is an issue caused by rdar://87601741 (PR 40860) - getDisplayDecls is collecting more decls, and adds an assertion that it shouldn't collect duplicates. This was added to prevent loading a module's underlying Clang module repeatedly, but it looks like it's also being hit for separate Clang modules, due to decls that ClangImporter automatically adds, such as __NSConstantString. This is causing compilation failures in corelibs-foundation's CI.

Metadata

Metadata

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c interopFeature: Interoperability with Cclang importerArea → compiler: The clang importercompilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions