diff options
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 706ebbf..1809f2d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6358,7 +6358,7 @@ maybe_note_name_used_in_class (tree name, tree decl) splay_tree names_used; /* If we're not defining a class, there's nothing to do. */ - if (!current_class_type || !TYPE_BEING_DEFINED (current_class_type)) + if (innermost_scope_kind() != sk_class) return; /* If there's already a binding for this NAME, then we don't have |