]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/87748 - substitution failure error with decltype.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Mar 2019 18:27:08 +0000 (18:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Mar 2019 18:27:08 +0000 (18:27 +0000)
commit93877af7d78d11a92d18162768ea8f85f117c44e
tree433526769555de82ecf3ec0284998f10622da6ac
parentf8026b1a4970535eaa46648a9c89194d4cb61aa7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269921 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/sfinae64.C [new file with mode: 0644]