aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-04-24 08:13:38 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-04-24 08:13:38 +0000
commitdfbb4f347cf43b955f56ecbc9709b8836d395ee5 (patch)
tree8f46ab0d0836aa9fe30d168822d264e27457a5a3 /gcc/cp/pt.c
parentc6f9b9a14126a36d97ae9cbb59064eab067d2edc (diff)
downloadgcc-dfbb4f347cf43b955f56ecbc9709b8836d395ee5.zip
gcc-dfbb4f347cf43b955f56ecbc9709b8836d395ee5.tar.gz
gcc-dfbb4f347cf43b955f56ecbc9709b8836d395ee5.tar.bz2
pt.c (tsubst_decl): Use VOID_TYPE_P.
cp: * pt.c (tsubst_decl): Use VOID_TYPE_P. * semantics.c: Fix some typos. From-SVN: r41519
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index ac88bec..1b88a78 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5901,8 +5901,8 @@ tsubst_decl (t, args, type)
DECL_INITIAL (r) = tsubst_expr (DECL_INITIAL (t), args,
/*complain=*/1, in_decl);
TREE_CHAIN (r) = NULL_TREE;
- if (TREE_CODE (type) == VOID_TYPE)
- cp_error_at ("instantiation of `%D' as type void", r);
+ if (VOID_TYPE_P (type))
+ cp_error_at ("instantiation of `%D' as type `%T'", r, type);
}
break;
@@ -6015,8 +6015,8 @@ tsubst_decl (t, args, type)
register_local_specialization (r, t);
TREE_CHAIN (r) = NULL_TREE;
- if (TREE_CODE (r) == VAR_DECL && TREE_CODE (type) == VOID_TYPE)
- cp_error_at ("instantiation of `%D' as type void", r);
+ if (TREE_CODE (r) == VAR_DECL && VOID_TYPE_P (type))
+ cp_error_at ("instantiation of `%D' as type `%T'", r, type);
}
break;