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

    <tr>
        <th>Summary</th>
        <td>
            fuchsia-statically-constructed-objects has invalid sample code
        </td>
    </tr>

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

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

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

<pre>
    There are some errors in the sample code of `fuchsia-statically-constructed-objects` - it seems all `C` objects are badly written: the first one uses a non-`constexpr` constructor, the second one uses non-existing constructor, and the third one misses variable name.

I also tired opening the link provided below the listing:

> https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md

but it shows

> PERMISSION_DENIED: The caller does not have permission

for me... - it seems #62334 may be referring to the same problem regarding the link.

Finally, perhaps it would be nice if all listings would be augmented with Compiler Explorer link demonstrating the check on that sample. (Of course, this would not work with our own checks, sadly.)

BTW, isn't this check "obsolete" with `constinit` in C++20? (Of course, provided someone can use it.)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE2P4zYM_TXKhYihyPk8-DAfCTCH7hbdAXosaIuJ1ZFFg5KTTH99ITuzk51eerEBiXyPenwkxuhOgahSq0e1ep7hkFqWCi12NdpBcFazfa9eWxICFILIHQGJsERwAVJLELHrPUHDloCPoNb6ODRtdDiPCZNr0Pv3ecMhJhmaRHbO9d_UpKjWGubgEkSiLgJ6n3Of8vEtYmSs0fp3uIhLiYIqH0bOo5OYgAPBECkCQuAwV2s90tC1l4zyk5NFmaepVmo42M_EnEZXF5MLp6_xGOyYk1onU0rnYk46ozisPUHAjgqln5V-mL4vgD4yJCdkgXsKGTZjeBfeoBc-O0sWavJ8uZ2P1Kp8uIdR5R7alPqYz81BmcNN0eLEfPIUeZCGioY7ZQ7_OGk4jGGPyhw6jIlEmYPlJipzaK7XorP36PWQRtVbvsSvrL_v__jt5cePl-_f_nref3vZP2fBX1uC3EUSsDyKlqDFM0FPkiVxHO5xjizQUVEU991VplybslxCh-9QEwgdSWSUhz9cRFmh2lMHQicUey_eLzIfXMimyk3qSVrsYya68OCzthBcQ-COo6NuAsfPWxxOHYVEFi4utfDEXe_y0_bX3rOQTL2y1I1uwPRRRdNS8wacPY_pZvoClNl-P0LDg0SaTOY-uLJMF5a3iYcHAb6ECSbm0JiNXSizu3_a4-uf-c7FoMwmTXATszKG68ieEiljJtAPx7vgUna8C_A02uDRaFUe_lPdTwfmMc6ObjDkQQCXciEzW5V2V-5wRtVivSuXplyWm1lbrVdotK6RtrrZbPVuoc12o7eberUotV6bmauMNqXelnqxM-VqU-jlusZ6tysNbe1ytVRLTR06X3h_7gqW08zFOFC1Xi0W25nHmnwcl5AxgS4wXipj8k6SKufM6-EU1VLnhsZPlOSSp-r_LRxoMS-tM3pn77fWbBBf_TpvJ5faob5NWCa7_ea9cMZS5jCWmCdsfMK_AQAA__-6BcCo">