<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57854>57854</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Linking problem with use of -ffp-exception-behavior=maytrap and #pragma clang fp exceptions(ignore) with clang 15
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
oepir
</td>
</tr>
</table>
<pre>
The following program, see below, when compiled with:
bash> clang++ -std=c++20 bug.ii -ffp-exception-behavior=maytrap -o bug
gives linking errors for std::allocator-related entities. Moving the #pragma to before the inclusion of <memory> fixes this.
In bug.tar.gz I have also included pre-processed source code, bug.ii.
#include <memory>
#pragma clang fp exceptions(ignore)
#include <boost/format.hpp>
int main() {
boost::format fmt;
}
[bug.tar.gz](https://github.com/llvm/llvm-project/files/9610719/bug.tar.gz)
No problem seen with clang 14.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU9uOmzAQ_RrzMgKBgbA88LC7aaSV2j71BwwM4NbYyDbJpl_fwWRvUqVtJcvx2MyZc85MWtNfmx8TwmCUMhepR1isGa2YGX8Ehwgt0v0WXCbU0Jl5kQp7uEg_sfyepUeW3vZWOLr6Ap0SemT8gRbEzvcsP3Z7yFNo1zGREuJhWGJ87nDx0ui4xUmcpbH06Syu3ooFYrN9-x5_lGd0oKT-tdFEa411xNtCqHFPS5CGTnhjY4tKeKKJ2ksv0SUA38x5y_MklvF8sWKcBXiqgoSB4V7qTq2OCIEZgOWPM87GXjdNg3ym2n6SLtnJPOkgxQubjL_hCYg_glDO7CA91V4sxmRmh85R5MxqOyQDe9zc3H1I3usjVrfcD7VfH2-Ug70wLPBqn2P8To6aVDBe_w2rNcZ5xk8kdBY-mZblDTfsUnuYhdQERBDAqof9HmBPDe7u2TDMFN_eWXX8oKB8eDOFlUeCm7xf3JbPT7RGmpq1TWiKKFDq_PKz-fQTu8CRxosEnepDllZZTad3kK_ywv7dbMPaKpy3SdVhJm_2ZEUSYZMdDnmV8iwvor7J-zqvRUTzoLD5epuil_yQujrcGv_5bArdwz835AOtMlqtav7bFOncGlwpq7uyiKaG15yLtMa6zIu-yAqeYpXnXT207dBl9SFSgv64rqGOMM41XiBA0JnaEsmGp5ynNU-zmhNg0lZZeUeHLC37Nh9yVqRI86CSjUdi7BjZJlCiXjh6VNJ59_YonCO5iKEc4YvVT8Y2Bhdpo1C4CcT_AIfwacs">