]> granicus.if.org Git - clang/commitdiff
Make a note for the C++0x future, when we'll have to revisit the jump-diagnostics...
authorDouglas Gregor <dgregor@apple.com>
Mon, 8 Mar 2010 02:49:08 +0000 (02:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 8 Mar 2010 02:49:08 +0000 (02:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97929 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/JumpDiagnostics.cpp

index 7cf207f77aa823c104b6014998818e006008cb48..1c761b95039c97812434e73426f5721fa7bcc44f 100644 (file)
@@ -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;