This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r269921 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 25 Mar 2019 18:27:08 -0000
- Subject: r269921 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...
Author: jason
Date: Mon Mar 25 18:27:08 2019
New Revision: 269921
URL: https://gcc.gnu.org/viewcvs?rev=269921&root=gcc&view=rev
Log:
PR c++/87748 - substitution failure error with decltype.
This issue is similar to PR 87480; in both cases we were doing non-dependent
substitution with processing_template_decl set, leading to member access
expressions seeming still instantiation-dependent, and therefore decltype
not being simplified to its actual type. And as in that PR, the fix is to
clear processing_template_decl while substituting a default template
argument.
* pt.c (most_specialized_partial_spec): Clear
processing_template_decl.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/sfinae64.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c