<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/66597>66597</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Kaleidoscope Tutorial Chapter 4 compile fails
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mosicr
      </td>
    </tr>
</table>

<pre>
    Trying to compile chapter 4 toy.cpp
 clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -rdynamic -O3 -o toyp
318In file included from toy.cpp:2:
319In file included from ././KaleidoscopeJIT.h:17:
320In file included from ././llvm/ADT/StringRef.h:14:
321In file included from ././llvm/ADT/./STLFunctionalExtras.h:18:
322././llvm/ADT/./STLForwardCompat.h:46:35: error: no template named 'optional' in namespace 'std'
323auto transformOptional(const std::optional<T> &O, const Function &F)
324 ~~~~~^

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU01vrDgQ_DXNpcUI2nz5wIFMgvR2V4q0b_6AxxjGT8ZGtkkyl_3tK5idSQ6rSA8JYVV3VZeNS4SgJ6tUC-UTlM-JWOPF-XZ2QUufnN1wbU_-qu2E0aF086KNQnkRS1QeC4zuepDLAtkzZB1KI-wE9AT0hOl0LyJUmTFvcyqdHfWEaSo_PkYjpoBpaob7KlxDVHNq9HnHt490XqHz8peOaEXUbwqqDFM_XK2YtcT0lWHqtjn_OWB588PiuHnUVpp1UAOO3s0Pn6wjYN29mf9_8wGo394_hVF6cEG6Rf3x43S4AOvy-pNP2ff8bdNAffd8Aup_Rq_t9LcabzLFF5n8N2Q24Ofpr361MmpnhXn5iF6Em2jzRZS-pTv_LvxwdPMi4s4tKmAdK4F1qLx3fltYh1HNixFRoRWzGhCodsttLlCN2u54WIRUWy3EAai-O2BijQ6jFzaMzs-vD2IjnQ0Rt27WAesekux4AvaCQNUr0BFvbfetbnAPxO_yBf6zPVC-3JBkaNnAGReJavOKF7xsGKPk0mY0FtWZN_k5b7KSV5KXec3reuRyINaIRLeUEct4XuesKBkdykZVjOdcjgU1Y0FQZGoW2hy2szw4PyU6hFW1VVXyOjHirEzYA0Rk1TvuRSDa8uTb_eqf1ylAkRkdYvhUiToa1X69Znhao_NaGDw-MnZP3Si0CcnqTXuJcQnb2VEP1E86XtbzQbr582_vQxfvfikZgfrdUQDqd8f_BgAA__9NzTwo">