C++ PATCH for c++/42447 (crash with array of incomplete type template parameter)

Jason Merrill jason@redhat.com
Tue Dec 29 08:15:00 GMT 2009


The hash function for template parameters was assuming that identical 
types will either all have TYPE_CANONICAL, or none.  But this is an 
invalid assumption for ARRAY_TYPE, as layout_type sets structural 
comparison for arrays of incomplete type.  So this patch adjusts the 
hash function to hash the element and domain directly.

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


More information about the Gcc-patches mailing list