Commit 1813dd7b by Martin v. Löwis Committed by Jason Merrill

* decl2.c (arg_assoc_type): Process unknown_type_node and OFFSET_TYPE.

From-SVN: r20219
parent 285baa06
...@@ -4,14 +4,12 @@ ...@@ -4,14 +4,12 @@
1998-06-04 Martin von Lwis <loewis@informatik.hu-berlin.de> 1998-06-04 Martin von Lwis <loewis@informatik.hu-berlin.de>
* decl2.c (arg_assoc_type): Process unknown_type_node and OFFSET_TYPE.
* tree.c (mapcar): Support NEW_EXPR. * tree.c (mapcar): Support NEW_EXPR.
* error.c (dump_expr): Support NEW_EXPR. * error.c (dump_expr): Support NEW_EXPR.
1998-06-04 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (arg_assoc_type): Return 0 for LANG_TYPE.
1998-06-03 Jason Merrill <jason@yorick.cygnus.com> 1998-06-03 Jason Merrill <jason@yorick.cygnus.com>
* method.c (make_thunk): Use overload machinery to make name. * method.c (make_thunk): Use overload machinery to make name.
......
...@@ -4208,7 +4208,6 @@ arg_assoc_type (k, type) ...@@ -4208,7 +4208,6 @@ arg_assoc_type (k, type)
case COMPLEX_TYPE: case COMPLEX_TYPE:
case CHAR_TYPE: case CHAR_TYPE:
case BOOLEAN_TYPE: case BOOLEAN_TYPE:
case LANG_TYPE:
return 0; return 0;
case RECORD_TYPE: case RECORD_TYPE:
if (TYPE_PTRMEMFUNC_P (type)) if (TYPE_PTRMEMFUNC_P (type))
...@@ -4221,6 +4220,11 @@ arg_assoc_type (k, type) ...@@ -4221,6 +4220,11 @@ arg_assoc_type (k, type)
case UNION_TYPE: case UNION_TYPE:
case ENUMERAL_TYPE: case ENUMERAL_TYPE:
return arg_assoc_namespace (k, decl_namespace (TYPE_MAIN_DECL (type))); return arg_assoc_namespace (k, decl_namespace (TYPE_MAIN_DECL (type)));
case OFFSET_TYPE:
/* Pointer to member: associate class type and value type. */
if (arg_assoc_type (k, TYPE_OFFSET_BASETYPE (type)))
return 1;
return arg_assoc_type (k, TREE_TYPE (type));
case METHOD_TYPE: case METHOD_TYPE:
/* Associate the class of the method. */ /* Associate the class of the method. */
if (arg_assoc_type (k, TYPE_METHOD_BASETYPE (type))) if (arg_assoc_type (k, TYPE_METHOD_BASETYPE (type)))
...@@ -4232,6 +4236,10 @@ arg_assoc_type (k, type) ...@@ -4232,6 +4236,10 @@ arg_assoc_type (k, type)
return 1; return 1;
/* Associate the return type. */ /* Associate the return type. */
return arg_assoc_type (k, TREE_TYPE (type)); return arg_assoc_type (k, TREE_TYPE (type));
case LANG_TYPE:
if (type == unknown_type_node)
return 0;
/* else fall through */
default: default:
my_friendly_abort (390); my_friendly_abort (390);
} }
......
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