1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * call.c (build_field_call): handle static data members too
+
* typeck.c (comptypes): when comparing pointer types, check
whether referred types match even in strictest modes
return error_mark_node;
}
- if (TREE_CODE (field) == FIELD_DECL)
+ if (TREE_CODE (field) == FIELD_DECL || TREE_CODE (field) == VAR_DECL)
{
/* If it's a field, try overloading operator (),
or calling if the field is a pointer-to-function. */
if (field == error_mark_node)
return error_mark_node;
- if (field && TREE_CODE (field) == FIELD_DECL)
+ if (field && (TREE_CODE (field) == FIELD_DECL ||
+ TREE_CODE (field) == VAR_DECL))
{
tree basetype;
tree ftype = TREE_TYPE (field);