Skip to content

Compiler Generated Destructor #430

@ochavan9

Description

@ochavan9

Hi,
Firstly, great job with this tool. It really helps to understand what magic the compiler does with our source code, especially providing insights about the modern cpp features.
I was trying out the tool for below code snippet:
class A{};
int main(){
A a;
}
The compiler output:
class A
{
public:
// inline constexpr A() noexcept = default;
};
int main()
{
A a = A();
}

Here for the class A compiler generated a default constructor. But I don't see a destructor generated. When object 'a' goes out of scope the destructor should be called. But I don't see it in the compiler output of the tool.
Please correct me if I missed anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions