Go to file
Nico Weber b1e72eca0c [libcxx] Make __wrap_iter work with gcc.
he following snippet doesn't build when using gcc and libc++:

    #include <string>
    void f(const std::string& s) { s.begin(); }
    #include <vector>
    void AppendTo(const std::vector<char>& v) { v.begin(); }

The problem is that __wrap_iter has a private constructor. It lists vector<>
and basic_string<> as friends, but gcc seems to ignore this for vector<> for
some reason. Declaring vector before the friend declaration in __wrap_iter is
enough to work around this problem, so do that. With this patch, I'm able to
build chromium/android with libc++. Without it, two translation units fail to
build. (iosfwd already provides a forward declaration of basic_string.)

As far as I can tell, this is due to a gcc bug, which I filed as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816.

Fixes PR22355.

http://reviews.llvm.org/D7201

llvm-svn: 227226
2015-01-27 19:27:39 +00:00
clang Implement the remaining portion of DR1467 from r227022. I may have overlooked a few things, but this implementation comes straight from the DR resolution itself. 2015-01-27 18:47:05 +00:00
clang-tools-extra [clang-tidy] Use shrink_to_fit instead of copy and swap trick 2015-01-23 15:10:37 +00:00
compiler-rt profile: add lib/profile to cc_kext on darwin,arm64 2015-01-27 17:10:07 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use amdgcn triple for SI+ GPUs 2015-01-06 20:42:12 +00:00
libcxx [libcxx] Make __wrap_iter work with gcc. 2015-01-27 19:27:39 +00:00
libcxxabi Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default. 2015-01-26 22:00:30 +00:00
lld [ARM] Correctly use make_unhandled_reloc_error 2015-01-27 08:47:15 +00:00
lldb Fix copy paste error in file header. 2015-01-27 18:40:25 +00:00
llgo Introduce llgoi, a REPL for Go 2015-01-15 04:13:29 +00:00
llvm [mips] Add range checks and transformation to octeon instructions in AsmParser. 2015-01-27 19:11:28 +00:00
openmp Comments only: removing the Revision and Date svn variables from the top of all the source files. 2015-01-27 17:13:53 +00:00
polly [FIX] Debug build + instrinsic handling 2015-01-26 15:55:54 +00:00