[LLVMdev] fix a "does not name a type" bug in VASTContext.h

Eli Friedman eli.friedman at gmail.com
Mon Mar 12 17:04:09 PDT 2012


On Thu, Mar 8, 2012 at 6:22 AM, Qingrui Liu <liuqingrui422 at gmail.com> wrote:
> Hi all,
>    I find a bug in the VASTContext.h of the latest clang. I fixed it and
> commit a patch for it. As follows:
>
> From 447d31176b513a03b253eb25ef314c2a3c0e428a Mon Sep 17 00:00:00 2001
> From: Tsingray <tsingray at buildbot-slave-desktop.(none)>
> Date: Thu, 8 Mar 2012 22:11:54 +0800
> Subject: [PATCH] fix a 'does not name a type' bug in VASTContext.h
>
> ---
>  include/clang/AST/ASTContext.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
> index 3bdac2d..530f957 100644
> --- a/include/clang/AST/ASTContext.h
> +++ b/include/clang/AST/ASTContext.h
> @@ -480,7 +480,7 @@ public:
>                                    const FieldDecl *LastFD) const;
>
>    // Access to the set of methods overridden by the given C++ method.
> -  typedef CXXMethodVector::const_iterator overridden_cxx_method_iterator;
> +  typedef CXXMethodVector::iterator overridden_cxx_method_iterator;
>    overridden_cxx_method_iterator
>    overridden_methods_begin(const CXXMethodDecl *Method) const;

Can you "svn up" your llvm and clang sources and check if you are
still having issues?

-Eli




More information about the llvm-dev mailing list