C++ PATCH for c++/56247 (ICE with PMF in two template member functions)

Jason Merrill jason@redhat.com
Sat Feb 9 20:37:00 GMT 2013


Here, the internal representation of &Base::method in the templates 
involves an OFFSET_REF around 'this', and we were treating the two 
instances of Wrapper as equivalent.  But they involve different 'this' 
parameters, which makes a difference when we go to look up the local 
specialization.  So we need to be stricter when comparing hash table 
entries so that they aren't shared.

Tested x86_64-pc-linux-gnu, applying to trunk, 4.7 and 4.6.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 56247.patch
Type: text/x-patch
Size: 3122 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130209/aa6c5999/attachment.bin>


More information about the Gcc-patches mailing list