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

    <tr>
        <th>Summary</th>
        <td>
            non template parameter is not considered a contexpr in a templated lambda 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    A template parameter cannot be provided into a templated function if used inside a templated lambda. 
It is considered to be non-constexpr while the parameter itself is a literal. 

Here is a link to the minimal example for the reproduction:
https://godbolt.org/z/K7Yeqcfr1


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUNFu3CAQ_Br7BcXCEJzzAw-poqpRviCPC6zPtBiugJNLvr5rp9deq0jGZnbHs7NjknvT96zicgpQkZ0gw4IVM7MQY6rMUC2nF-_QMR9rYvCH7Ni0Rlt9isxPbC07oxDzH06AxTjoWMMfGn7_WJkvzKadl6lNijQipnizFSueT5m9zj4gq_O1HV8Lhmn7GVjwVIFw0fx4fyO5Szv-2HQ3gcVHv0BgeAYyhGxKea9npK3curtv5G-JudZT2ZD4Ss8xOZNC7VI-Enqn83T3jD_tlPvruS3qfhgOYpC9HFunpRvlCG31NaCmvT7Llmxu2V7FABv42N7HT_Jj7ZqD_s-gr_NqOpsWAiG8XD43tNp3tJWgL2XFQhd1GJVqZ3IHSkmy2isuJPJp6g_ODQO31vLBTG0Ag6HoRn1p1EPrteBC9H0v-luh5NgpZ0Byg-LOSiX4obnluIAP3TZ4i6rNevdg1mOhZvCllr9NKMUfI-JFH9Y6p6wtBDTnt_d296t3s78A23_eFA">