diff options
author | Jason Merrill <jason@redhat.com> | 2018-03-29 15:38:29 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-03-29 15:38:29 -0400 |
commit | e597f6822c64f3886bdfa7f6a371470cdb642903 (patch) | |
tree | 6c2828208a21a9c7f82472b1c7556197d90afd2d /gcc/cp/search.c | |
parent | 28ed14605eba0b4978fa8158cc2bc3db75f16f5d (diff) | |
download | gcc-e597f6822c64f3886bdfa7f6a371470cdb642903.zip gcc-e597f6822c64f3886bdfa7f6a371470cdb642903.tar.gz gcc-e597f6822c64f3886bdfa7f6a371470cdb642903.tar.bz2 |
PR c++/85060 - wrong-code with call to base member in template.
* search.c (any_dependent_bases_p): Check uses_template_parms
rather than processing_template_decl.
From-SVN: r258962
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r-- | gcc/cp/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 6bf8b0e..bfeaf2c 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -2619,7 +2619,7 @@ original_binfo (tree binfo, tree here) bool any_dependent_bases_p (tree type) { - if (!type || !CLASS_TYPE_P (type) || !processing_template_decl) + if (!type || !CLASS_TYPE_P (type) || !uses_template_parms (type)) return false; /* If we haven't set TYPE_BINFO yet, we don't know anything about the bases. |