re PR c++/70466 ([ICE on invalid code in tree check: expected constructor, have parm_...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 18 May 2016 14:18:06 +0000 (14:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 18 May 2016 14:18:06 +0000 (14:18 +0000)
commit20309c6e2f8a3dcd1edb66f8f95669e174183403
treeb95d6329a32b4edf3fe448b86af19c2961d2ca67
parent50c78b9ab33d5f81b5f175621d56ba10f234cd37
re PR c++/70466 ([ICE on invalid code in tree check: expected constructor, have parm_decl in convert_like_real, at cp/call.c:6371 with -std=c++11)

/cp
2016-05-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70466
* call.c (convert_like_real): Check that we are actually converting
from an init list.

/testsuite
2016-05-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70466
* g++.dg/template/pr70466-1.C: New.
* g++.dg/template/pr70466-2.C: Likewise.

From-SVN: r236395
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr70466-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/pr70466-2.C [new file with mode: 0644]