mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-11 02:57:14 +08:00
error.c (dump_function_decl): Use DECL_VIRTUAL_P, not TYPE_POLYMORPHIC_P.
cp: * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not TYPE_POLYMORPHIC_P. * typeck.c (build_static_cast): Remove unused variable. From-SVN: r37996
This commit is contained in:
parent
ae50db03d7
commit
00bb3dad40
@ -1,3 +1,10 @@
|
||||
2000-12-04 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
|
||||
TYPE_POLYMORPHIC_P.
|
||||
|
||||
* typeck.c (build_static_cast): Remove unused variable.
|
||||
|
||||
2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||
|
||||
* pt.c: Fix typo in comment.
|
||||
|
@ -1219,7 +1219,7 @@ dump_function_decl (t, flags)
|
||||
/* OK */;
|
||||
else if (DECL_STATIC_FUNCTION_P (t))
|
||||
print_identifier (scratch_buffer, "static ");
|
||||
else if (TYPE_POLYMORPHIC_P (t))
|
||||
else if (DECL_VIRTUAL_P (t))
|
||||
print_identifier (scratch_buffer, "virtual ");
|
||||
|
||||
/* Print the return type? */
|
||||
|
@ -5046,7 +5046,7 @@ tree
|
||||
build_static_cast (type, expr)
|
||||
tree type, expr;
|
||||
{
|
||||
tree intype, binfo;
|
||||
tree intype;
|
||||
int ok;
|
||||
|
||||
if (type == error_mark_node || expr == error_mark_node)
|
||||
|
Loading…
Reference in New Issue
Block a user