<html>#2548: Compilation failure: "const" assignment in LoopControl/src/loopcontrol.cc
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Bernard Kelly</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2021_05</td></tr>
<tr><td style='text-align:right'>  Version:</td><td>ET_2021_05</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>Hmm, these may be causes by a change in C++ where constexpr and const are not longer implying each other, though why it would only happen for you with Intel17 I am not sure. Could be the same library mismatch as in <a href="https://bitbucket.org/einsteintoolkit/tickets/issues/2457/expand-allocation-in-basedir-variable" rel="nofollow" title="expand @ALLOCATION@ in basedir variable" class="ap-connect-link"><s>#2457</s></a> but I kind of doubt it.<br>
I took a look at the reference for the function call (<code>min</code>) in question: <a data-is-external-link="true" href="https://en.cppreference.com/w/cpp/numeric/random/linear_congruential_engine/min" rel="nofollow">https://en.cppreference.com/w/cpp/numeric/random/linear_congruential_engine/min</a> and it is declared as</p>
<div class="codehilite"><pre><span></span><span>static constexpr result_type min();</span>
</pre></div>

<p>so the compiler error seems odd. The only thing I can think of is that either the C++ standard library used (incorrectly) does not declare it as <code>constexpr</code>, or that the compiler gets confused b/c I am calling a static class function via an object.  </p>
<p>I will try and see if <code>minstd_rand::minx()</code> works instead, assuming I can find a cluster where I can reproduce the issue.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2548/compilation-failure-const-assignment-in'>https://bitbucket.org/einsteintoolkit/tickets/issues/2548/compilation-failure-const-assignment-in</a></p>
</html>