<html>#2705: error: more than one instance of overloaded function "isnan" matches the argument list
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Miguel Zilhão</td></tr>
<tr><td style='text-align:right'> Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>
<p>With ET_2022_11, I’m finding the following error on at least two different machines when using the intel compilers: </p>
<div class="codehilite"><pre><span></span><span class="n">error</span><span class="o">:</span> <span class="n">more</span> <span class="n">than</span> <span class="n">one</span> <span class="n">instance</span> <span class="n">of</span> <span class="n">overloaded</span> <span class="kd">function</span> <span class="s2">"isnan"</span> <span class="n">matches</span> <span class="n">the</span> <span class="n">argument</span> <span class="n">list</span><span class="o">:</span>
<span class="kd">function</span> <span class="s2">"isnan(double)"</span>
<span class="kd">function</span> <span class="s2">"std::isnan(double)"</span>
<span class="n">argument</span> <span class="n">types</span> <span class="n">are</span><span class="o">:</span> <span class="o">(</span><span class="n">double</span><span class="o">)</span>
</pre></div>
<p>and an equivalent error for the “isinf” function. The error points to lines 220 and 228 in the file <code>cactustest/TestMath/src/math_cc.cc</code>. If I comment lines 218-232 in this file (or prefix the the calls with <code>"std::"</code>) it seems to compile fine.</p>
<p>One machine where this happens is Marenostrum 4, but bizarrely, whether the error shows up or not, depends on which modules (and in which order) are loaded.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2705/error-more-than-one-instance-of-overloaded'>https://bitbucket.org/einsteintoolkit/tickets/issues/2705/error-more-than-one-instance-of-overloaded</a></p>
</html>