title: initializer list with struct and inheritance
body: <p>I'm using initializer lists for structs. But, it doesn't work with inheritance. </p>
  
  <p>This code is good. </p>
  
  <pre><code>struct K {
  int x, y;
  };
  
  K k {1, 2};
  </code></pre>
  
  <p>But, this produces an error. </p>
  
  <pre><code>struct L : public K {};
  L l {1, 2};
  </code></pre>
  
  <p>Also, this does not work. </p>
  
  <pre><code>struct X {
      int x;
  };
  
  struct Y : public X {
      int y;
  };
  
  Y y {1, 2};
  </code></pre>
  
  <p>Is there a way to use initializer lists with inherited structs. I'm using them in templates and so it doesn't compile if it is an inherited class or not.</p>