<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [libc++] Merge 52e9d80d5db20f23979e409f958736d130387f9e into 12.0.1"
href="https://bugs.llvm.org/show_bug.cgi?id=50734">50734</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[libc++] Merge 52e9d80d5db20f23979e409f958736d130387f9e into 12.0.1
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>12.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Please merge
<a href="https://github.com/llvm/llvm-project/commit/52e9d80d5db20f23979e409f958736d130387f9e">https://github.com/llvm/llvm-project/commit/52e9d80d5db20f23979e409f958736d130387f9e</a>
into 12.0.1.
This enables libc++'s <fstream> to be used with gcc, which will otherwise
complain with "function body not available" (which is, admittedly, a rather
obscure error):
In file included from
/workspace/src/contrib/llvm-project/libcxx/src/filesystem/operations.cpp:39:
/workspace/src/contrib/llvm-project/libcxx/include/fstream: In function 'bool
std::__1::__fs::filesystem::detail::{anonymous}::copy_file_impl(std::__1::__fs::filesystem::detail::{anonymous}::FileDescriptor&,
std::__1::__fs::filesystem::detail::{anonymous}::FileDescriptor&,
std::__1::error_code&)':
/workspace/src/contrib/llvm-project/libcxx/include/fstream:1329:6: error:
inlining failed in call to always_inline 'void std::__1::basic_ifstream<_CharT,
_Traits>::__open(int, std::__1::ios_base::openmode) [with _CharT = char;
_Traits = std::__1::char_traits<char>]': function body not available
1329 | void basic_ifstream<_CharT, _Traits>::__open(int __fd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/src/contrib/llvm-project/libcxx/src/filesystem/operations.cpp:778:14:
note: called from here
778 | in.__open(read_fd.fd, ios::binary);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~</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>