<html>#2818: failing tests with gcc-14
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</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>EinsteinToolkit thorn</td></tr>
</table>
<p>Comment (by Roland Haas):</p>
<p>The issue seems to be related to <code>loop.hxx</code> and its code: </p>
<div class="codehilite language-c++"><pre><span></span><code> <span class="mi">190</span> <span class="k">const</span> <span class="n">PointDesc</span> <span class="n">p</span> <span class="o">=</span>
<span class="mi">191</span> <span class="n">point_desc</span><span class="p">({</span><span class="n">CI</span><span class="p">,</span> <span class="n">CJ</span><span class="p">,</span> <span class="n">CK</span><span class="p">},</span> <span class="n">I</span><span class="p">,</span> <span class="n">iter</span><span class="p">,</span> <span class="n">NI</span><span class="p">,</span> <span class="n">I0</span><span class="p">,</span> <span class="n">BI</span><span class="p">,</span> <span class="n">bnd_min</span><span class="p">,</span> <span class="n">bnd_max</span><span class="p">,</span>
<span class="mi">192</span> <span class="n">loop_min</span><span class="p">,</span> <span class="n">loop_max</span><span class="p">);</span>
</code></pre></div>
<p>where the first arguments gets passed as <code>vect<bool, dim>&</code>. Changing to code to have an explicit variable: </p>
<div class="codehilite"><pre><span></span><code><span>const vect<bool, dim> _CI{CI,CJ,CK};</span>
</code></pre></div>
<p>and passing that one for the first argument makes the tests pass. </p>
<p>Without the explicit variable gcc-14 emits a warning: </p>
<div class="codehilite language-text"><pre><span></span><code>In lambda function,
inlined from ?constexpr std::array<_Tp, _Nm> Arith::construct_array(const F&) [with T = bool; long unsigned int N = 1; F = vect<bool, 3>::vect(std::initializer_list<bool>)::<lambda(size_t)>]? at /data/rhaas/postdoc/gr/cactus/ET_trunk
/arrangements/CarpetX/Arith/src/vect.hxx:94:57,
inlined from ?constexpr std::array<_Tp, _Nm> Arith::construct_array(const F&) [with T = bool; long unsigned int N = 2; F = vect<bool, 3&g
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2818/failing-tests-with-gcc-14'>https://bitbucket.org/einsteintoolkit/tickets/issues/2818/failing-tests-with-gcc-14</a></p>
</html>