Skip to content

[C++20] [Modules] [ABI] The linkage of in-class defaulted function #145676

Open
@ChuanqiXu9

Description

@ChuanqiXu9

e.g.,

export module a;
export class A {
public:
  A() = default;
  ~A() = default;
};

I believe we should generate A::A() and A::~A() in current TU instead of treating them as inline now.

godbolt: https://godbolt.org/z/MGn5sE1sb we should be able to see A::A() and A::~A() here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header Modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions