[PR c++/20103] failure to gimplify constructors for addressable types
Alexandre Oliva
aoliva@redhat.com
Thu Mar 3 07:09:00 GMT 2005
In the reduced testcase from the bug report, included in the patch
file below, we fail to gimplify the CONSTRUCTOR created for the
compound-literal expression. When we attempt to create_tmp_var to
hold the B-typed value, it fails because B is addressable.
This patch introduces an alternate entry point for create_tmp_var that
accepts addressable types, and uses that in the relevant caller when
the value is a CONSTRUCTOR.
Bootstrapping on x86_64-linux-gnu, after successful C++ regression
testing on make all. Ok to install if full bootstrap and regression
testing completes?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimplify-constructor-addressable.patch
Type: text/x-patch
Size: 2854 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050303/e449e630/attachment.bin>
-------------- next part --------------
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
More information about the Gcc-patches
mailing list