Could not find this in C99. Perhaps this rule comes from a DR, but in any case

please annotate it with a note explaining why this wrong-seeming behaviour is
correct.

llvm-svn: 152488
This commit is contained in:
Nick Lewycky 2012-03-10 07:45:33 +00:00
parent ebb10df441
commit d9e1e57e2a
1 changed files with 1 additions and 0 deletions

View File

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