]> granicus.if.org Git - clang/commitdiff
Could not find this in C99. Perhaps this rule comes from a DR, but in any case
authorNick Lewycky <nicholas@mxc.ca>
Sat, 10 Mar 2012 07:45:33 +0000 (07:45 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 10 Mar 2012 07:45:33 +0000 (07:45 +0000)
please annotate it with a note explaining why this wrong-seeming behaviour is
correct.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 5febad616c20268d0591dd5ab3da2da301587e54..532767b64c3145f0781795de092bc83bf29a5b73 100644 (file)
@@ -8029,6 +8029,7 @@ Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK,
   } else if (S->isFunctionPrototypeScope()) {
     // If this is an enum declaration in function prototype scope, set its
     // initial context to the translation unit.
+    // FIXME: [citation needed]
     SearchDC = Context.getTranslationUnitDecl();
   }