-
-
Notifications
You must be signed in to change notification settings - Fork 264
Compiler Generated Destructor #430
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels