* typeck.c (build_component_ref): Use of a type here is an error.
From-SVN: r23207
This commit is contained in:
parent
352f608aaa
commit
cd916110da
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue