PR c++/63149 - wrong auto deduction from braced-init-list
authorNina Dinka Ranns <dinka.ranns@gmail.com>
Wed, 5 Jun 2019 18:11:20 +0000 (14:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Jun 2019 18:11:20 +0000 (14:11 -0400)
commit9b79d5d3baad087f145d64ae7f132be0aac3b901
treee8afb3a095a314db4f2d4362737a9ad34fe99179
parent781d39f26e0d5e9b8a0234525d8930e1d1f938bf
PR c++/63149 - wrong auto deduction from braced-init-list

2019-06-04  Nina Dinka Ranns  <dinka.ranns@gmail.com>

    gcc/cp/
    * pt.c (listify_autos): Use non cv qualified auto_node in
    std::initializer_list<auto>.

    testsuite/
    * g++.dg/cpp0x/initlist-deduce2.C: New test.

From-SVN: r271968
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C [new file with mode: 0644]