The instantiated does get a new collection of ParmVarDecls while getting
the pattern Type which points to the pattern ParmVarDecls. So the
ParmVarDecls pointed in the instantiated are not the same as those pointed
by its Type.

Traversing by Type or by the Decl finds a different set of ParmVarDecls
which seems an inconsistency or at least a surprise.

2016-01-28 22:39 GMT+02:00 Reid Kleckner <r...@google.com>:

> The fact that an instantiated type might point to decls from the template
> pattern seems like expected behavior. The parts of the template that are
> the same are supposed to be shared.
>
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to