[Bug c++/85977] Incorrect handling of array reference size deduction
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 6 17:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jun 6 17:51:19 2018
New Revision: 261241
URL: https://gcc.gnu.org/viewcvs?rev=261241&root=gcc&view=rev
Log:
PR c++/85977
* pt.c (unify): If ELTTYPE has no deducible template parms, skip
deduction from the list elements.
(type_unification_real): Check convertibility of list elements.
* g++.dg/cpp0x/initlist102.C: New test.
* g++.dg/cpp0x/initlist103.C: New test.
* g++.dg/cpp0x/initlist104.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist102.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist103.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist104.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list