vsk added a subscriber: bruno.
vsk added a comment.

That seems like a nice win and I like the convenience of this approach. That 
said I've just remembered that there's a thread on cfe-dev about this:
[RFC] Suppress C++ static destructor registration

I don't think a consensus was reached. From what I gather, some people think 
that the convenience of this flag makes it worth adding to clang, while others 
think that adding a non-standard compiler-specific flag is asking for trouble.

I suspect that we'll need more consensus to get this in tree. See Richard's 
comment:
"If someone's prepared to write up a paper for the C++ committee exploring what 
it would mean to standardize this behaviour and actually fix the problem for 
everyone, it would seem extremely reasonable for clang trunk to carry a flag to 
enable that behaviour (and it certainly doesn't have to wait for the committee 
to respond)."


https://reviews.llvm.org/D35338



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to