[cfe-commits] [PATCH] Use static storage duration for file-scope compound literals in C++ dynamic initializers
chandlerc at google.com
Tue Nov 22 14:39:20 PST 2011
On Tue, Nov 22, 2011 at 2:30 PM, Richard Smith <richard at metafoo.co.uk>wrote:
> The attached patch fixes the compound-literals-in-C++ extension to always
> static storage duration for file-scope compound literals, as per GCC's
> documentation for this extension. Currently we only give them static
> duration if the initializer in which they appear is a constant.
> OK to commit?
It's not clear to me why we need the helper function? Otherwise this looks
fine to me...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits