<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:dexonsmith@apple.com" title="Duncan <dexonsmith@apple.com>"> <span class="fn">Duncan</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - cmath: compile failure with custom fabs in std namespace"
href="http://llvm.org/bugs/show_bug.cgi?id=18176">bug 18176</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>dexonsmith@apple.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - cmath: compile failure with custom fabs in std namespace"
href="http://llvm.org/bugs/show_bug.cgi?id=18176#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - cmath: compile failure with custom fabs in std namespace"
href="http://llvm.org/bugs/show_bug.cgi?id=18176">bug 18176</a>
from <span class="vcard"><a class="email" href="mailto:dexonsmith@apple.com" title="Duncan <dexonsmith@apple.com>"> <span class="fn">Duncan</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=18176#c1">comment #1</a>)
<span class="quote">> I'm not completely sure, but I think your code relies on undefined behavior.
> §17.6.4.2.1p1:
>
> | The behavior of a C++ program is undefined if it adds declarations or
> | definitions to namespace std or to a namespace within namespace std unless
> | otherwise specified. [...]
>
> And §D.5, where cmath is described, does not say that it is possible to add
> e.g. fabs for a custom type to std.</span >
Yup. See also
<<a href="http://stackoverflow.com/questions/15104760/c11-overloading-not-specializing-templates-in-std-namespace">http://stackoverflow.com/questions/15104760/c11-overloading-not-specializing-templates-in-std-namespace</a>>.</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>