[cfe-commits] r151638 - in /cfe/trunk: include/clang/AST/Decl.h include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Scope.h include/clang/Sema/Sema.h lib/AST/Decl.cpp lib/AST/DumpXML.cpp lib/Parse/ParseDecl.cpp lib/Sema/IdentifierResolver.cpp lib/Sema/Scope.cpp lib/Sema/Sema.cpp lib/Sema/SemaDecl.cpp test/CodeGen/decl-in-prototype.c test/Misc/warning-flags.c test/Sema/decl-in-prototype.c

Abramo Bagnara abramo.bagnara at gmail.com
Tue Feb 28 10:36:01 PST 2012


Il 28/02/2012 19:12, James Molloy ha scritto:
> Author: jamesm
> Date: Tue Feb 28 12:12:11 2012
> New Revision: 151638
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=151638&view=rev
> Log:
> Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped.
> 
> This fixes code such as:
> 
> enum e {x, y};
> int f(enum {y, x} n) {
>   return 0;
> }
> 
> This finally fixes PR5464 and PR5477.

Is this meant to fix also http://llvm.org/bugs/show_bug.cgi?id=6298 ?



More information about the cfe-commits mailing list