[cfe-dev] [RFC] automatic variable initialization

Kostya Serebryany via cfe-dev cfe-dev at lists.llvm.org
Wed Jan 16 19:34:53 PST 2019

> Should main be involved, though?

How else?
main() creates a local variable on stack and passes it's address to a CTOR,
that (in general case) is unknown at the point where we insert

> It's normally the job of the constructor to initialize the class members,
> and that's where the information about whether the members are
> uninitialised lives.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190116/fc08f074/attachment.html>

More information about the cfe-dev mailing list