Commit cd916110 by Jason Merrill Committed by Jason Merrill

* typeck.c (build_component_ref): Use of a type here is an error.

From-SVN: r23207
parent 352f608a
1998-10-21 Jason Merrill <jason@yorick.cygnus.com>
* typeck.c (build_component_ref): Use of a type here is an error.
1998-10-19 Jason Merrill <jason@yorick.cygnus.com>
Revamp references to member functions.
......
......@@ -2053,8 +2053,8 @@ build_component_ref (datum, component, basetype_path, protect)
field = component;
else if (TREE_CODE (component) == TYPE_DECL)
{
cp_pedwarn ("invalid use of type decl `%#D' as expression", component);
return component;
cp_error ("invalid use of type decl `%#D' as expression", component);
return error_mark_node;
}
else
{
......
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