<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Crashes if DISPLAY is unset"
   href="https://bugs.webkit.org/show_bug.cgi?id=156972#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Crashes if DISPLAY is unset"
   href="https://bugs.webkit.org/show_bug.cgi?id=156972">bug 156972</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=156972#c4">comment #4</a>) 
<span class="quote">&gt; Isn't the order ensured by the compiler? why do we have a warning when the
&gt; order in the list doesn't match the one in the declaration, then?</span >

Member variables are always initialized in the order they are declared in the class, NOT the order they are listed in the initializer list. Putting them out of order in the initializer list is thus very confusing, and worth warning about. We should never do that in WebKit.

Since relying on the order of declarations is risky -- someone could easily swap those in a &quot;cleanup&quot; and not notice the warning -- I agree with Berto that it's a good idea to do the assignment in the body of the constructor.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>