[cfe-dev] Compile error on Windows ALL_BUILD

Beman Dawes bdawes at acm.org
Thu May 20 19:00:16 PDT 2010


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.

--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)) {
 




More information about the cfe-dev mailing list