<html>#2315: Issues compiling with gcc7.3 with c++17
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Samuel Tootle</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>ET_2016_11</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Carpet</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>I tried reproducing this using the master branch of Carpet with the compilers available on my workstation:</p>
<ul>
<li>g++-9 (Debian 9.2.1-22) 9.2.1 20200104 compiles without error</li>
<li>g++-8 (Debian 8.3.0-26) 8.3.0 compiles without error</li>
<li>g++-7 (Debian 7.5.0-3) 7.5.0 compiles without error</li>
</ul>
<p>Switching to ET_2016_11 I find that:</p>
<ul>
<li>g++-7 (Debian 7.5.0-3) 7.5.0  fails with the error your describe</li>
<li>g++-8 (Debian 8.3.0-26) 8.3.0  fails with the error your describe</li>
<li>g++-9 (Debian 9.2.1-22) 9.2.1 20200104  fails with the error your describe</li>
</ul>
<p>Since the version you are using (ET_2016_11) is 3 years old, there have been quite a few changes since then. However if I had to bet I’d say that git hash <a data-is-external-link="true" href="https://bitbucket.org/eschnett/carpet/commits/986b01b2e3cecb76d7d22cbfe34e71a2877ff423" rel="nofollow">986b01b2</a> "Move CarpetLib types and functions into a new namespace CarpetLib" of <a data-is-external-link="true" href="https://bitbucket.org/eschnett/carpet" rel="nofollow">carpet</a> is the one that makes it work in master.</p>
<p><span class="ap-mention" data-atlassian-id="5b59c8ffe288ee2d9b4ba7ba">@Samuel Tootle</span> , you have some options:</p>
<ol>
<li>switch to use master (at least for Carpet)</li>
<li>ask <span class="ap-mention" data-atlassian-id="557058:bba61a26-7a03-4ff4-afc9-3582fa9722d2">@David Radice</span> whether a newer version of the ET can be used (anything starting with ET_2019_03 will do) with THC</li>
<li>try and cherry pick the commit I pointed out and hope for the best</li>
</ol>
<p>Since this is a very old release we (the ET maintainers) are unlikely to backport a fix to it.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2315/issues-compiling-with-gcc73-with-c-17'>https://bitbucket.org/einsteintoolkit/tickets/issues/2315/issues-compiling-with-gcc73-with-c-17</a></p>
</html>