Commit 9747e84a by Jason Merrill Committed by Jason Merrill

decl.c (lookup_name_real): Do nested field lookup regardless of TYPE_BEING_DEFINED.

	* decl.c (lookup_name_real): Do nested field lookup regardless of
	TYPE_BEING_DEFINED.

From-SVN: r25943
parent 2ced0b14
1999-03-24 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (lookup_name_real): Do nested field lookup regardless of
TYPE_BEING_DEFINED.
1999-03-24 Mark Mitchell <mark@codesourcery.com> 1999-03-24 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (lang_type): Remove has_assignment and * cp-tree.h (lang_type): Remove has_assignment and
......
...@@ -5503,13 +5503,12 @@ lookup_name_real (name, prefer_type, nonclass, namespaces_only) ...@@ -5503,13 +5503,12 @@ lookup_name_real (name, prefer_type, nonclass, namespaces_only)
classes explicitly. */ classes explicitly. */
if (!val && !nonclass if (!val && !nonclass
&& current_class_type && TYPE_BEING_DEFINED (current_class_type)) && current_class_type && TYPE_BEING_DEFINED (current_class_type))
{ val = qualify_lookup (lookup_field (current_class_type, name, 0, 0),
val = qualify_lookup (lookup_field (current_class_type, name, 0, 0), flags);
flags);
if (!val) /* The name might be from an enclosing class of the current scope. */
val = qualify_lookup (lookup_nested_field (name, !yylex), if (!val && !nonclass && current_class_type)
flags); val = qualify_lookup (lookup_nested_field (name, !yylex), flags);
}
/* If we found a type from a dependent base class (using the /* If we found a type from a dependent base class (using the
implicit typename extension) make sure that there's not some implicit typename extension) make sure that there's not some
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment