Commit 4f8025eb by Nathan Sidwell Committed by Nathan Sidwell

* call.c (build_scoped_method_call): Check it is not a namespace.

From-SVN: r36094
parent 0479a462
2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
* call.c (build_scoped_method_call): Check it is not a namespace.
2000-08-30 Jason Merrill <jason@redhat.com> 2000-08-30 Jason Merrill <jason@redhat.com>
* cp-tree.h (LOCAL_CLASS_P): Use decl_function_context. * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
......
...@@ -275,6 +275,11 @@ build_scoped_method_call (exp, basetype, name, parms) ...@@ -275,6 +275,11 @@ build_scoped_method_call (exp, basetype, name, parms)
} }
} }
if (TREE_CODE (basetype) == NAMESPACE_DECL)
{
cp_error ("`%D' is a namespace", basetype);
return error_mark_node;
}
if (! is_aggr_type (basetype, 1)) if (! is_aggr_type (basetype, 1))
return error_mark_node; return error_mark_node;
......
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