C++ PATCH to use VEC_INIT_EXPR for array mem-initializers

Jason Merrill jason@redhat.com
Tue Oct 26 19:33:00 GMT 2010


Our implementation of constexpr constructors involves walking the trees 
generated for the mem-initializers of a constructor and building up a 
simpler representation for use at expansion time.  When we're dealing 
with an array member, this has meant trying to parse the output of 
build_vec_init, which is daunting.  This patch changes 
perform_member_init to generate a VEC_INIT_EXPR instead, which is much 
easier to analyze.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_vec_init.patch
Type: text/x-patch
Size: 6894 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101026/ef93206c/attachment.bin>


More information about the Gcc-patches mailing list