C++ PATCH for c++/47904 (crash with template argument that uses 'this')

Jason Merrill jason@redhat.com
Sun Feb 27 10:58:00 GMT 2011


When I added DECL_PARM_INDEX, it didn't occur to me that we could hit 
the code for hashing/comparing args with 'this' when used inside a 
function; I was only thinking of uses in a trailing return type, where 
'this' isn't in scope (well, wasn't...that is changing).

And while I was fixing that I also fixed the code to handle the new 
DECL_PARM_LEVEL as it should.

Tested x86_64-pc-linux-gnu, applied to trunk.  I'll backport to 4.5 soon.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 47904.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110227/922a91cc/attachment.ksh>


More information about the Gcc-patches mailing list