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

    <tr>
        <th>Summary</th>
        <td>
            [[clang::lifetimebound]] doesn't work with default arguments
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          higher-performance
      </td>
    </tr>
</table>

<pre>
    ```
const int& foo(const int& x [[clang::lifetimebound]] = 0) {
    return x;
}
int main() {
    const int& x = foo();  // No error
 return x;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUd3O2yoQfJr1zSoRXuIfLrhIZOXyvAMxa5tTDBHgfl_fvopjtWqrqhISaMXM7MyYnN0cmDU0N2iGymxliUkvbl44nZ6cpphWE0auHtF-09CK44gBxHWMIRd0oQC1OMUI1P8y-sSd9jZ6E2aQV5BX7yYubuVH3IKFZoBmQJADCiCF0N3exIiIicuWAn6CPIbQDe-HCwVX4wJQ_wfqd305HIsBKZA3RKA70B3_i8gpxXQg_y72w3JltbRKKlOxrlvV9u1FkagWfZG2rqeu5d5ay2NPtVKdvDRKtJORvaicJkGyFkLVDdWNOk_M1taKGymbjlsDF8Grcf7s_df1HNNcuZw31m3fqLby5sE-7w0RvaMkepWV9Ov_6bHNGS7Cu1zyT4biij9q_Vf-NnIOQF3Bj5i-4IcrC1qezOYLmjRvK4eSqy15vZTyzC-iPcTZlWV7nMe4At1fwsd1eqb4P48F6L77yED33cr3AAAA__9XaLfh">