C++ PATCH for c++/65054 (ICE with pointer arithmetic)

Jason Merrill jason@redhat.com
Fri Feb 13 22:06:00 GMT 2015


In this testcase we were folding a bunch of nops within a 
POINTER_PLUS_EXPR down to a single nop, and then tripping the assert in 
maybe_constant_value that checks for useless rebuilding of the tree 
because cp_tree_equal ignores NOPs.  The reason for that choice seems to 
have been so that we can compare template non-type arguments both before 
and after conversion to match the type of the template parameter, so 
let's move that code into template_args_equal.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 65054.patch
Type: text/x-patch
Size: 2952 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150213/924e6e40/attachment.bin>


More information about the Gcc-patches mailing list