Thanks Eli, I was thinking along those lines, but how do I actually get the other one? FunctionDecl can only be one kind, and this one is TK_FunctionTemplateSpecialization. I took a look at the one returned by the getPrimaryTemplate()->getTemplatedDecl(), but that one is TK_FunctionTemplate.<br>

<br><div class="gmail_quote">On Wed, Mar 14, 2012 at 11:31 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">There are multiple templates here, so you need to look through both of<br></div></div>
them.  "FD->getPrimaryTemplate()->getTemplatedDecl()" only gets you<br>
the function template which is a member of Class<int>.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>