PR c++/88631 - CTAD failing for value-initialization.
authorMarek Polacek <polacek@redhat.com>
Wed, 2 Jan 2019 22:20:45 +0000 (22:20 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 2 Jan 2019 22:20:45 +0000 (22:20 +0000)
commit29bb9224fcd5aaf7a126f49d2004858a9ba620d5
treeee9f340d1450633b685ddf07e5e9c0177a1e23a4
parent5b81a980e6949bfb826bf5f0da7180f1f8e559d4
PR c++/88631 - CTAD failing for value-initialization.

* typeck2.c (build_functional_cast): Try deducing the template
arguments even if there are no arguments to deduce from.

* g++.dg/cpp1z/class-deduction59.C: New test.

From-SVN: r267533
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/class-deduction59.C [new file with mode: 0644]