C++ PATCH for c++/49253 (v3 debug mode regression)

Jason Merrill jason@redhat.com
Wed Jun 1 18:40:00 GMT 2011

My changes to preserve reference semantics in templates broke the 
shenanigans build_x_arrow was using for non-dependent ARROW_EXPR; it 
called build_min_non_dep and then overwrote the TREE_TYPE, but that 
broke in the case of a reference to pointer because it ended up giving 
the ARROW_EXPR REFERENCE_TYPE and then changing the type of the implicit 
INDIRECT_REF.  We shouldn't be using build_min_non_dep when there's an 
additional implied operation, anyway.  So this patch fixes it to use 
build_min instead, and set TREE_SIDE_EFFECTS directly.

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

More information about the Gcc-patches mailing list