C++ PATCHes to build_vec_init for c++/61994

Jason Merrill jason@redhat.com
Thu Aug 7 01:40:00 GMT 2014


The first patch is a simple fix for the testcase in 61994: if we build 
an INIT_EXPR, it should have array type, not pointer type.

But looking at that bug, I noticed a wrong-code bug as well: in cases 
like the testcase in 61994 where all the initializers are constant, we 
were failing to initialize trailing elements (with no explicit 
initializer) in cases where value-initialization is different from 
zero-initialization.  Oops.  So the second patch fixes that.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 61994.patch
Type: text/x-patch
Size: 1596 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140807/11f8e671/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vec-trailing.patch
Type: text/x-patch
Size: 9745 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140807/11f8e671/attachment-0001.bin>


More information about the Gcc-patches mailing list