<div dir="ltr"><br clear="all"><div>Forwarding manually to the mail list, unfortunately phabricator didn't send it.</div><div class="gmail_quote"><br><br>Types defined in function prototype are diagnosed earlier in C++ compilation.<br>

They are  put into declaration context where the prototype is introduced. Later on,<br>
when FunctionDecl object is created, these types are moved into the function context.<br>
<br>
This patch fixes PR19018 and PR18963.<br>
<br>
<a href="http://reviews.llvm.org/D4145" target="_blank">http://reviews.llvm.org/D4145</a><br>
<br>
Files:<br>
  lib/AST/Decl.cpp<br>
  lib/Sema/SemaDecl.cpp<br>
  test/Sema/decl-in-prototype.c<br>
  test/SemaCXX/type-definition-in-specifier.cpp<br>
</div><br></div>