[cfe-commits] [PATCH] Use static storage duration for file-scope compound literals in C++ dynamic initializers

Richard Smith richard at metafoo.co.uk
Tue Nov 22 14:30:01 PST 2011


Hi,

The attached patch fixes the compound-literals-in-C++ extension to always use
static storage duration for file-scope compound literals, as per GCC's
documentation for this extension. Currently we only give them static storage
duration if the initializer in which they appear is a constant.

OK to commit?

Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compound-literals-cxx.diff
Type: text/x-patch
Size: 2626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111122/0f0fc498/attachment.bin>


More information about the cfe-commits mailing list