Commit cf1b2274 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (verify_constructor_super): Use loop variable `m_arg_type' initialized…

parse.y (verify_constructor_super): Use loop variable `m_arg_type' initialized with `mdecl_arg_type'.

2000-06-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (verify_constructor_super): Use loop variable
	`m_arg_type' initialized with `mdecl_arg_type'.

From-SVN: r34800
parent ffaff414
2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (verify_constructor_super): Use loop variable
`m_arg_type' initialized with `mdecl_arg_type'.
2000-06-29 Tom Tromey <tromey@cygnus.com> 2000-06-29 Tom Tromey <tromey@cygnus.com>
* parse.y (resolve_field_access): Handle case where `type_found' * parse.y (resolve_field_access): Handle case where `type_found'
......
...@@ -11078,18 +11078,19 @@ verify_constructor_super (mdecl) ...@@ -11078,18 +11078,19 @@ verify_constructor_super (mdecl)
for (sdecl = TYPE_METHODS (class); sdecl; sdecl = TREE_CHAIN (sdecl)) for (sdecl = TYPE_METHODS (class); sdecl; sdecl = TREE_CHAIN (sdecl))
if (DECL_CONSTRUCTOR_P (sdecl)) if (DECL_CONSTRUCTOR_P (sdecl))
{ {
tree m_arg_type;
tree arg_type = TREE_CHAIN (TYPE_ARG_TYPES (TREE_TYPE (sdecl))); tree arg_type = TREE_CHAIN (TYPE_ARG_TYPES (TREE_TYPE (sdecl)));
if (super_inner) if (super_inner)
arg_type = TREE_CHAIN (arg_type); arg_type = TREE_CHAIN (arg_type);
for (; (arg_type != end_params_node for (m_arg_type = mdecl_arg_type;
&& mdecl_arg_type != end_params_node); (arg_type != end_params_node
&& m_arg_type != end_params_node);
arg_type = TREE_CHAIN (arg_type), arg_type = TREE_CHAIN (arg_type),
mdecl_arg_type = TREE_CHAIN (mdecl_arg_type)) m_arg_type = TREE_CHAIN (m_arg_type))
if (TREE_VALUE (arg_type) != TREE_VALUE (mdecl_arg_type)) if (TREE_VALUE (arg_type) != TREE_VALUE (m_arg_type))
break; break;
if (arg_type == end_params_node && if (arg_type == end_params_node && m_arg_type == end_params_node)
mdecl_arg_type == end_params_node)
return 0; return 0;
} }
} }
......
...@@ -8380,18 +8380,19 @@ verify_constructor_super (mdecl) ...@@ -8380,18 +8380,19 @@ verify_constructor_super (mdecl)
for (sdecl = TYPE_METHODS (class); sdecl; sdecl = TREE_CHAIN (sdecl)) for (sdecl = TYPE_METHODS (class); sdecl; sdecl = TREE_CHAIN (sdecl))
if (DECL_CONSTRUCTOR_P (sdecl)) if (DECL_CONSTRUCTOR_P (sdecl))
{ {
tree m_arg_type;
tree arg_type = TREE_CHAIN (TYPE_ARG_TYPES (TREE_TYPE (sdecl))); tree arg_type = TREE_CHAIN (TYPE_ARG_TYPES (TREE_TYPE (sdecl)));
if (super_inner) if (super_inner)
arg_type = TREE_CHAIN (arg_type); arg_type = TREE_CHAIN (arg_type);
for (; (arg_type != end_params_node for (m_arg_type = mdecl_arg_type;
&& mdecl_arg_type != end_params_node); (arg_type != end_params_node
&& m_arg_type != end_params_node);
arg_type = TREE_CHAIN (arg_type), arg_type = TREE_CHAIN (arg_type),
mdecl_arg_type = TREE_CHAIN (mdecl_arg_type)) m_arg_type = TREE_CHAIN (m_arg_type))
if (TREE_VALUE (arg_type) != TREE_VALUE (mdecl_arg_type)) if (TREE_VALUE (arg_type) != TREE_VALUE (m_arg_type))
break; break;
if (arg_type == end_params_node && if (arg_type == end_params_node && m_arg_type == end_params_node)
mdecl_arg_type == end_params_node)
return 0; return 0;
} }
} }
......
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