C++ PATCH for c++/54652 (ICE with repeated typedef/attribute)

Jason Merrill jason@redhat.com
Tue Jan 28 04:16:00 GMT 2014


Since duplicate_decls throws away the new decl before returning 1, we 
need to make sure that we don't have anything pointing to it.  In a 
TYPE_DECL, the type points back to the decl via TYPE_NAME, so we always 
need to choose the type from the olddecl.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54652.patch
Type: text/x-patch
Size: 1270 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140128/25f0feb0/attachment.bin>


More information about the Gcc-patches mailing list