Fwd: [PATCH] Fix treatment of types defined in function prototype
    Serge Pavlov 
    sepavloff at gmail.com
       
    Sun Jun 15 11:01:28 PDT 2014
    
    
  
Forwarding manually to the mail list, unfortunately phabricator didn't send
it.
Types defined in function prototype are diagnosed earlier in C++
compilation.
They are  put into declaration context where the prototype is introduced.
Later on,
when FunctionDecl object is created, these types are moved into the
function context.
This patch fixes PR19018 and PR18963.
http://reviews.llvm.org/D4145
Files:
  lib/AST/Decl.cpp
  lib/Sema/SemaDecl.cpp
  test/Sema/decl-in-prototype.c
  test/SemaCXX/type-definition-in-specifier.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140616/f3a7d4d3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4145.10418.patch
Type: text/x-patch
Size: 5909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140616/f3a7d4d3/attachment.bin>
    
    
More information about the cfe-commits
mailing list