Skip to content

[ASTImporter] Class with repeated friends are rejected when re-imported into initial empty Context #64425

@danix800

Description

@danix800
struct foo { friend class X; friend class X; }; // FromContext

only one friend is imported, similar to the following:

struct foo { friend class X; }; // ToContext

but when imported again, struct foo in FromContext is reported as
not equivalent to struct foo in ToContext, thus rejected.

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions