summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-08 02:49:08 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-08 02:49:08 +0000
commit0aad774232bdada69896952c05b594e1f414209e (patch)
treeca4bfdc08953de5cc3bfbbee20e15ff8f98985ea /clang/lib/Sema
parent589973b097996bffb4f7d56af189f93c9d37b60a (diff)
downloadbcm5719-llvm-0aad774232bdada69896952c05b594e1f414209e.tar.gz
bcm5719-llvm-0aad774232bdada69896952c05b594e1f414209e.zip
Make a note for the C++0x future, when we'll have to revisit the jump-diagnostics handling for variables without initializers
llvm-svn: 97929
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/JumpDiagnostics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp
index 7cf207f77aa..1c761b95039 100644
--- a/clang/lib/Sema/JumpDiagnostics.cpp
+++ b/clang/lib/Sema/JumpDiagnostics.cpp
@@ -85,6 +85,8 @@ static unsigned GetDiagForGotoScopeDecl(const Decl *D, bool isCPlusPlus) {
return diag::note_protected_by_cleanup;
if (VD->hasAttr<BlocksAttr>())
return diag::note_protected_by___block;
+ // FIXME: In C++0x, we have to check more conditions than "did we
+ // just give it an initializer?". See 6.7p3.
if (isCPlusPlus && VD->hasLocalStorage() && VD->hasInit())
return diag::note_protected_by_variable_init;
OpenPOWER on IntegriCloud