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

    <tr>
        <th>Summary</th>
        <td>
            `misc-const-correctness` not detected for `std::vector` with `front()` call
        </td>
    </tr>

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

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

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

<pre>
    ```cpp
#include <vector>

struct S {
    int i;

    std::vector<S> cb();

    void d() {
        std::vector<S> ft1 = cb();
        (void)ft1.front();
    }
};
```
https://godbolt.org/z/nPqoY44j4

CC @JonasToth 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UU1v2zAM_TXyRahhS_LXQYcm2Q47DeguO8oSnahQpFSSE2y_frTTbFlb1KBl8pF6fKTHYH5J0lZX06cTqXakeiSMW6_dbIASvj2DziES_uU1uZ4px1ln-kRJt7kiFB_rM7WEb-4rFzxlQ_gj2o1r-4R8VI-E9YQNH9w4B2uouab_7_EJ35RrFLx7z3u7h_BCjCksLacYfP6gknS7Vzno_JV229I1POR8SosG9hVtH8wYXC5D3GP0G1___SX8FOJZ3A-23VIiqm_Bq_Qj5AMtQNZt27CmrTkvjORm4IMqss0Olt9ytEk_6OBTxjNGnNVDSpigPmRqICMChk4hUgTfLgXLLha7oHM_KcJaOVfM0ck3U2D1PJY6HDFw7nz7PJxieEZODG1KMyR0mp6JtjhIA5OG2gyi63nfC9EYzvqWt6LrWiYUK5wawSVJmg1hzMOFrhTok2ZXWMkqxuqq6uuh6hteKg7AwNTNNNTYYMJ1wVFZVy46lvUWUa6SxnmfMOlsyulfUqVk9x5gbYf8as6HEOVkI1zUGYq1t1y1_wE_Ttc5">