summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-06-07 15:58:05 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-06-07 15:58:05 +0000
commitcaa710dfd236bb2fa8aec42808aee2cef9ed99a8 (patch)
treedc9a0634d8f9bd7f28b39eed2be857372ef848c3 /clang/lib/Sema/Sema.h
parent18504440008badf4262c8137a8096a0a144a4d03 (diff)
downloadbcm5719-llvm-caa710dfd236bb2fa8aec42808aee2cef9ed99a8.tar.gz
bcm5719-llvm-caa710dfd236bb2fa8aec42808aee2cef9ed99a8.zip
PR7245: Make binding a reference to a temporary without a usable copy
constructor into an extension warning into the error that C++98 requires. llvm-svn: 105529
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index 10ff5ad8b9a..fed5e7895cf 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -2767,7 +2767,8 @@ public:
AccessResult CheckConstructorAccess(SourceLocation Loc,
CXXConstructorDecl *D,
const InitializedEntity &Entity,
- AccessSpecifier Access);
+ AccessSpecifier Access,
+ bool IsCopyBindingRefToTemp = false);
AccessResult CheckDestructorAccess(SourceLocation Loc,
CXXDestructorDecl *Dtor,
const PartialDiagnostic &PDiag);
OpenPOWER on IntegriCloud