re PR c++/85028 (ICE on invalid C++ code: in tsubst_default_argument, at cp/pt.c...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 28 Mar 2018 19:21:41 +0000 (19:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 28 Mar 2018 19:21:41 +0000 (19:21 +0000)
commit427d369ce186fbe89562fc16a9d2cdaec37c99c0
tree09714d7c314a9cbc4e8853f99125dfacdb96cb93
parent0a5c6d78b7159352185283c38c1359ecb3204c9f
re PR c++/85028 (ICE on invalid C++ code: in tsubst_default_argument, at cp/pt.c:12340)

/cp
2018-03-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85028
* pt.c (tsubst_default_argument): Early return if the type of the
parameter is erroneous.

/testsuite
2018-03-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85028
* g++.dg/other/default13.C: New.

From-SVN: r258932
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default13.C [new file with mode: 0644]