title: initializer_list<const T> to vector<T>
body: <p>I've got the following code that builds in VS but it doesn't make it through the gcc compiler.</p>
  
  <pre><code>void test(const std::vector&lt;double&gt;&amp;);
  
  const auto v = { 1., 2. };
  test(v);
  </code></pre>
  
  <p><a href="http://coliru.stacked-crooked.com/a/af041f50edee027f" rel="nofollow">http://coliru.stacked-crooked.com/a/af041f50edee027f</a></p>
  
  <p>Is gcc right, is there a problem with this code? Removing const in front of auto fixes the problem.</p>