<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "error: ‘trunk’ was not declared in this scope" while compiling clang"
   href="http://llvm.org/bugs/show_bug.cgi?id=22816">22816</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"error: ‘trunk’ was not declared in this scope" while compiling clang
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andreas@fink.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>System: stock debian7 64bit

checkout from SVN: llvm, clang, lldb, extra, compiler-rt

configure like this:

CC=gcc CXX=g++ ../llvm/configure --enable-targets=all


fails to compile:

llvm[4]: Compiling ASTWriter.cpp for Debug+Asserts build
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp: In member
function ‘void clang::ASTWriter::WriteControlBlock(clang::Preprocessor&,
clang::ASTContext&, llvm::StringRef, const string&)’:
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1155:20:
error: ‘trunk’ was not declared in this scope
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1156:39:
error: no matching function for call to ‘llvm::SmallVector<long unsigned int,
64u>::push_back()’
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1156:39:
note: candidate is:
In file included from /Users/afink/llvm/llvm/include/llvm/ADT/ArrayRef.h:14:0,
                 from /Users/afink/llvm/llvm/include/llvm/ADT/APInt.h:19,
                 from /Users/afink/llvm/llvm/include/llvm/ADT/APFloat.h:20,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/AST/APValue.h:18,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Decl.h:17,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/Serialization/ASTWriter.h:18,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:14:
/Users/afink/llvm/llvm/include/llvm/ADT/SmallVector.h:328:8: note: void
llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = long
unsigned int]
/Users/afink/llvm/llvm/include/llvm/ADT/SmallVector.h:328:8: note:   candidate
expects 1 argument, 0 provided
/bin/rm: cannot remove
`/Users/afink/llvm/llvm-build/tools/clang/lib/Serialization/Debug+Asserts/ASTWriter.d.tmp':
No such file or directory


trying to compile using CMAKE fails too but with other errors (will open other
ticket)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>