[Bug 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
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 20 19:10:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70466
--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri May 20 19:09:59 2016
New Revision: 236530
URL: https://gcc.gnu.org/viewcvs?rev=236530&root=gcc&view=rev
Log:
/cp
2016-05-20 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-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/70466
* g++.dg/template/pr70466-1.C: New.
* g++.dg/template/pr70466-2.C: Likewise.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/template/pr70466-1.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/template/pr70466-2.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/call.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list