<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68593>68593</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] llvm-flang won't build w ith gcc 7.5.0
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dpalermo
</td>
</tr>
</table>
<pre>
To build LLVM, gcc 7.5 appears to be the agreed upon minimum requirement:
https://discourse.llvm.org/t/require-gcc-7-4-as-gcc-7-3-cannot-build-llvm-16-x-or-main/72310/52
but llvm-flang has build errors when built with gcc 7.5.0 (causing problems with builds on SLES 15)
Error seen:
```
llvm-project/flang/include/flang/Common/enum-class.h: In static member function 'static std::string_view Fortran::parser::DefinedOperator::EnumToString(Fortran::parser::DefinedOperator::IntrinsicOperator)':
llvm-project/flang/include/flang/Parser/parse-tree.h:597:3: in constexpr expansion of 'Fortran::common::EnumNames<17>(((const char*)(& vaArgs)))'
llvm-project/flang/include/flang/Common/enum-class.h:51:16: error: '(((const char*)(& vaArgs)) == 0)' is not a constant expression
} else if (!start) {
^~~~~~
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVF2PqzYQ_TXOy4gITPh64CF3E6QrbT-kveprZcwEXGGbesxm-9LfXtnQvdlKfdhrocQePDPnHJsjiNRoEFtWfGHF5SBWP1nXDouY0Wl76O3wV_vNQr-qeYDn599-YvwJRimhOhYglgWFI_AWegQ_IYjRIQ6wLtaAVkbpVYPDP1flUKPxLD-z9MLS8-T9QmHFO8a7QZG0qyM8zvOrPlo3Mt55xrs9NRmlTKrklAjap3kihTHWJxFYEtKSrEzeEusSLZRhvKt4nqWMdwXfWm6__eoh7r7NwowwCdq5oXPWEdwnNDHi4a789C_VYwqM11KspMwIi7P9jJq2LTGfwBp4eb6-QFYw3jy2vIbKQIjmnT4r0_2Jyw3R4uwfKAPtiI3xThk5rwM-RJ6s1jawQ7PqRM6C6Dix_AxfDZAXXknQqHt0cFuN9MoaYLza35AfAoL8TN4pM_7-qvAOnXXeCbO9WIQjdNv8gjdlcPhlQSe83YNXs-pv9iXmM15_LvmrCXmk5HuYN4xX31X5pBi_bg15Fzsn3iFGMYom1MyDLADKgLSGPL4tDvBtEYaCKvYWhPmAX27avvP8WWgklj9lFcuvjNfbE4uBnIRj_BwJ1IyX8CrObqS4bnZaP8Tp_w64yFh-zsrAKd7UMAlNPgELWH5h-QXSDR8oAmM9iE0fYXyQxyEFfXbYYbDqAjgTggqS1Yxn5IXzsWD15WHjw2DF9e8w_nPbD0ObD03eiAO2WdmUdcmLojpMbZ_e0hOeBin6QjTV0Pf1reJVWtzKspRFc1AtT8P3nDbZ6cTz6ngqMMtTPhTI61TmyE4paqHmdwc5KKIV27Iumvwwix5niibH-S41D37n2ngy_ToSO6WzIk_fK3jl5-iMW0ZxeXSOezilyu_ucYcPZnFY3dx-9LhR-Wntj9JqxrtQZ_97uBURMTHeRdD_BAAA__8qtru_">