<html>
<head>
<base href="https://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 --- - libc++ fails to compile on systems without posix_memalign"
href="https://llvm.org/bugs/show_bug.cgi?id=31448">31448</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libc++ fails to compile on systems without posix_memalign
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>jeremyhu@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>On older systems without posix_memalign, libcxx now fails to compile with:
new.cpp:73:14: error: no member named 'posix_memalign' in the global namespace
while (::posix_memalign(&p, static_cast<size_t>(alignment), size) != 0)
~~^
1 error generated.
This regressed in 9acbffa370bd03e4e0ed742110e4c780b99c28ac with:
commit 9acbffa370bd03e4e0ed742110e4c780b99c28ac
Author: Eric Fiselier <<a href="mailto:eric@efcs.ca">eric@efcs.ca</a>>
Date: Fri Oct 14 06:46:30 2016 +0000
Implement P0035R4 -- Add C++17 aligned allocation functions
Summary:
This patch implements the library side of P0035R4. The implementation is
thanks to @rsmith.
In addition to the C++17 implementation, the library implementation can be
explicitly turned on using `-faligned-allocation` in all dialects.
Reviewers: mclow.lists, rsmith
Subscribers: rsmith, cfe-commits
Differential Revision: <a href="https://reviews.llvm.org/D25591">https://reviews.llvm.org/D25591</a>
git-svn-id: <a href="https://llvm.org/svn/llvm-project/libcxx/trunk@284206">https://llvm.org/svn/llvm-project/libcxx/trunk@284206</a>
91177308-0d34-0410-b5e6-96231b3b80d8
Can we test for the existence of posix_memalign</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>