<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:aaron@aaronballman.com" title="Aaron Ballman <aaron@aaronballman.com>"> <span class="fn">Aaron Ballman</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Designated initialisers - diagnose invalid designator order in C++20"
   href="https://bugs.llvm.org/show_bug.cgi?id=40030">bug 40030</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>aaron@aaronballman.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Designated initialisers - diagnose invalid designator order in C++20"
   href="https://bugs.llvm.org/show_bug.cgi?id=40030#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Designated initialisers - diagnose invalid designator order in C++20"
   href="https://bugs.llvm.org/show_bug.cgi?id=40030">bug 40030</a>
              from <span class="vcard"><a class="email" href="mailto:aaron@aaronballman.com" title="Aaron Ballman <aaron@aaronballman.com>"> <span class="fn">Aaron Ballman</span></a>
</span></b>
        <pre>This diagnostic appears to already be implemented:
<a href="https://godbolt.org/z/EPnG1EqKd">https://godbolt.org/z/EPnG1EqKd</a>

<source>:10:26: warning: ISO C++ requires field designators to be specified in
declaration order; field 's' will be initialized after field 'number'
[-Wreorder-init-list]
    return S{.s = "hi",  .number = 0}; // invalid (out of) order
                         ^~~~~~~~~~~
<source>:10:19: note: previous initialization for field 's' is here
    return S{.s = "hi",  .number = 0}; // invalid (out of) order
                  ^~~~
1 warning generated.

Closing as WORKSFORME, but if I'm missing something, please reopen with more
details. Thanks!</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>