https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65340
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Wed Mar 18 10:31:24 2015 New Revision: 221483 URL: https://gcc.gnu.org/viewcvs?rev=221483&root=gcc&view=rev Log: 2015-03-18 Paolo Carlini <paolo.carl...@oracle.com> PR c++/65340 * call.c (build_over_call): Pass the tsubst_flags_t argument to mark_used. * decl2.c (mark_used): Inline the require_deduced_type call and guard the error call. 2015-03-18 Paolo Carlini <paolo.carl...@oracle.com> PR c++/65340 * g++.dg/cpp1y/pr65340.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp1y/pr65340.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/decl2.c trunk/gcc/testsuite/ChangeLog