[cfe-dev] Compile error on Windows ALL_BUILD
Douglas Gregor
dgregor at apple.com
Sat May 22 07:53:08 PDT 2010
On May 20, 2010, at 7:00 PM, Beman Dawes wrote:
> Revision 104308.
>
> VC++ 2008 Express with SP1.
>
> 1>------ Build started: Project: clangDriver, Configuration: Debug Win32 ------
> 1>Compiling...
> 1>ArgList.cpp
> 1>.\ArgList.cpp(120) : error C2061: syntax error : identifier 'Diagnostic'
> 1>.\ArgList.cpp(120) : error C2511: 'int
> clang::driver::ArgList::getLastArgIntValue(clang::driver::OptSpecifier,int)
> const' : overloaded member function not found in 'clang::driver::ArgList'
> 1> D:\llvm\tools\clang\include\clang/Driver/ArgList.h(98) : see
> declaration of 'clang::driver::ArgList'
>
> The following patch clears the problem and allows ALL_BUILD to build with no
> errors. It is just a blind guess; this is only the second time I've built clang,
> and I'm totally unfamiliar with the clang code.
Great, thanks Beman! Daniel committed this in revision 104432.
- Doug
> --Beman
>
> Index: lib/Driver/ArgList.cpp
> ===================================================================
> --- lib/Driver/ArgList.cpp (revision 104308)
> +++ lib/Driver/ArgList.cpp (working copy)
> @@ -117,7 +117,7 @@
> }
>
> int ArgList::getLastArgIntValue(OptSpecifier Id, int Default,
> - Diagnostic &Diags) const {
> + clang::Diagnostic &Diags) const {
> int Res = Default;
>
> if (Arg *A = getLastArg(Id)) {
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list