[cfe-dev] Dumping template instantiation AST

Douglas Gregor dgregor at apple.com
Tue May 4 07:38:58 PDT 2010


On May 4, 2010, at 3:30 AM, Sebastian Redl wrote:

> 
> Hi,
> 
> Still trying to track down a miscompile, I've now found the place where it
> calls a default constructor instead of one with arguments. Now I'm trying
> to dump the AST of that function, but it's a member template of a template
> class, and the AST is full of unresolved expressions. I'm trying to find
> the AST of the instantiation, but it appears that it isn't in the AST dump.
> 
> How do I get an AST dump for a template instantiation?

You can get the AST dump for a template instantiation from within a debugger (just call the appropriate Dump method), but there's no way to do it from the command-line.

	- Doug



More information about the cfe-dev mailing list