re PR c++/84350 (ICE with new and auto)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 14 Feb 2018 17:59:29 +0000 (17:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Feb 2018 17:59:29 +0000 (17:59 +0000)
commit2482a4ec1e7bef28c603c93780de798a027eb9d4
treebb1c91d3e8d5ab2b73ee3c4ca29ccb944e9354b0
parent486c529987375143c1ca508a76c751cb07c56324
re PR c++/84350 (ICE with new and auto)

/cp
2018-02-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84350
* pt.c (do_auto_deduction): Don't check the TREE_TYPE of a null
init, early return.

/testsuite
2018-02-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84350
* g++.dg/cpp0x/auto49.C: New.

From-SVN: r257666
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto49.C [new file with mode: 0644]