summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2013-10-31 15:58:51 +0000
committerFaisal Vali <faisalv@yahoo.com>2013-10-31 15:58:51 +0000
commitfe194d5a84dcd440d64b855dba04409a61d08fca (patch)
tree6172644b7d3eeee4d690297f1b9a581b59893495 /clang/lib/Parse/ParseExpr.cpp
parent4b102d0eaddd7e20285d060214c6aae680ca283f (diff)
downloadbcm5719-llvm-fe194d5a84dcd440d64b855dba04409a61d08fca.tar.gz
bcm5719-llvm-fe194d5a84dcd440d64b855dba04409a61d08fca.zip
sizeof... a parameter pack should be an unevaluated context.
- can't think of a way to test this without generic lambda captures, but will include a test once that patch is made commit-ready. patch was ok'd by Doug. http://llvm-reviews.chandlerc.com/D2029 llvm-svn: 193757
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 8867b08e4ff..e9cb827bd99 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1711,6 +1711,9 @@ ExprResult Parser::ParseUnaryExprOrTypeTraitExpression() {
if (!Name)
return ExprError();
+ EnterExpressionEvaluationContext Unevaluated(Actions, Sema::Unevaluated,
+ Sema::ReuseLambdaContextDecl);
+
return Actions.ActOnSizeofParameterPackExpr(getCurScope(),
OpTok.getLocation(),
*Name, NameLoc,
OpenPOWER on IntegriCloud