[cfe-dev] nodes not appearing in AST?

Eli Friedman eli.friedman at gmail.com
Fri Jan 6 12:31:28 PST 2012


On Fri, Jan 6, 2012 at 12:18 PM, David Blaikie <dblaikie at gmail.com> wrote:
> I'm not sure if it's what the op was asking, but shouldn't the ast have
> some node in the (uninstantiated template) that represents the
> dependent call to too? Yet it seems printing the ast didn't show 'foo'
> anywhere in the template by the looks of it. Is it perhaps just
> something that's not printed by the ast pretty printing?

>From -ast-dump:

void bar() (CompoundStmt 0x7fce3b058e28 <<stdin>:13:1, line:15:1>
  (CallExpr 0x7fce3b058e00 <line:14:4, col:12> '<dependent type>'
    (MemberExpr 0x7fce3b058dc8 <col:4, col:8> '<bound member function
type>' .foo 0x7fce3b0583a0
      (MemberExpr 0x7fce3b058d90 <col:4> 'struct A' lvalue ->m_a 0x7fce3b058920
        (CXXThisExpr 0x7fce3b058d78 <col:4> 'B<T> *' this)))))

-Eli



More information about the cfe-dev mailing list