summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2009-11-29 07:34:05 +0000
committerAlexis Hunt <alercah@gmail.com>2009-11-29 07:34:05 +0000
commit3d221f2fcea813daac37f5d204e11efde7878f70 (patch)
tree15df9f38113a1fcebbd944f39ca2d1c317019115 /clang/lib/Sema/SemaExpr.cpp
parenta1b02a2380242f72db833763db64060ef117f471 (diff)
downloadbcm5719-llvm-3d221f2fcea813daac37f5d204e11efde7878f70.tar.gz
bcm5719-llvm-3d221f2fcea813daac37f5d204e11efde7878f70.zip
Add DeclarationName support for C++0x operator literals. They should now work as
function names outside of templates - they'll probably cause some damage there as they're largely untested. llvm-svn: 90064
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index f3a6765a6a2..8def7d4efc5 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -729,6 +729,7 @@ Sema::OwningExprResult Sema::ActOnIdExpression(Scope *S,
<< Name << computeDeclContext(SS, false)
<< SS.getRange());
else if (Name.getNameKind() == DeclarationName::CXXOperatorName ||
+ Name.getNameKind() == DeclarationName::CXXLiteralOperatorName ||
Name.getNameKind() == DeclarationName::CXXConversionFunctionName)
return ExprError(Diag(NameLoc, diag::err_undeclared_use)
<< Name);
OpenPOWER on IntegriCloud