diff options
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r-- | gcc/cp/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 6622fb5e20e..21d1b776246 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -875,8 +875,8 @@ accessible_p (tree type, tree decl, bool consider_local_p) instantiation. However, PROCESSING_TEMPLATE_DECL is set in the parameter list for a template (because we may see dependent types in default arguments for template parameters), and access - checking should be performed in the outermost parameter list. */ - if (processing_template_decl + checking should be performed in the outermost parameter list. */ + if (processing_template_decl && (!processing_template_parmlist || processing_template_decl > 1)) return 1; |