[cfe-commits] r72233 - in /cfe/trunk: include/clang/AST/Expr.h lib/AST/Expr.cpp lib/Sema/SemaInit.cpp lib/Sema/SemaTemplateInstantiateExpr.cpp test/SemaTemplate/fun-template-def.cpp test/SemaTemplate/instantiate-c99.cpp

Eli Friedman eli.friedman at gmail.com
Thu May 21 17:36:36 PDT 2009


On Thu, May 21, 2009 at 4:17 PM, Douglas Gregor<dgregor at apple.com> wrote:
> Also, delay semantic analysis of initialization for
> value-dependent as well as type-dependent expressions, since we can't
> always properly type-check a value-dependent expression.

It seems like we should be able to handle most cases without delay;
there's only one case I can think of where we can't resolve it
immediately.  That said, the edge case in question is rather nasty:
template<int N> struct X { void f() { int* X = N; } };
template struct X<0>;
template struct X<1>;

-Eli



More information about the cfe-commits mailing list