[PATCH] D19144: Handle TemplateArgument in DynTypedNode comparison operations.

Samuel Benzaquen via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 13:19:24 PDT 2016


sbenza added a comment.

To be more specific, the problem comes from the use of `hasAnscestor` (done by `isInTemplateInstantiation` ) while there is a `TemplateArgument` in the bound nodes.
This tries to put the node into the cache.
To trigger this easily you only need to have a hit in the cache.
I think you can trigger it by adding a second line `boost::lexical_cast<std::string>(42);` in the `string_as_T` test. That second hit should get a cache hit and trigger the bug.


http://reviews.llvm.org/D19144





More information about the cfe-commits mailing list