mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 19:29:45 +08:00
* 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
@ -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…
Reference in New Issue
Block a user