Commit 2f29e5e8 by Tom Tromey Committed by Tom Tromey

parse.y (resolve_inner_class): Error if qualifier is a primitive type.

	* parse.y (resolve_inner_class): Error if qualifier is a primitive
	type.

From-SVN: r64314
parent 3bed2930
2003-03-13 Tom Tromey <tromey@redhat.com>
* parse.y (resolve_inner_class): Error if qualifier is a primitive
type.
2003-03-04 Andrew Haley <aph@redhat.com>
* gjavah.c (is_first_data_member): New global variable.
......
......@@ -3527,9 +3527,16 @@ resolve_inner_class (htab_t circularity_hash, tree cl, tree *enclosing,
return decl;
}
/* Now go to the upper classes, bail out if necessary. We will
/* Now go to the upper classes, bail out if necessary. We will
analyze the returned SUPER and act accordingly (see
do_resolve_class.) */
do_resolve_class). */
if (JPRIMITIVE_TYPE_P (TREE_TYPE (local_enclosing))
|| TREE_TYPE (local_enclosing) == void_type_node)
{
parse_error_context (cl, "Qualifier must be a reference");
local_enclosing = NULL_TREE;
break;
}
local_super = CLASSTYPE_SUPER (TREE_TYPE (local_enclosing));
if (!local_super || local_super == object_type_node)
break;
......
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