aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-06-07 15:54:15 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-06-07 15:54:15 +0000
commitd5a10cf069a2f84e5b24a22e1eecc91918ea8875 (patch)
tree576e0ec637de9afd595c03b47bb46c01da79d012 /gcc/c-common.c
parent0ab80019b6aadd0fb427920d38428db7ed1ccbf1 (diff)
downloadgcc-d5a10cf069a2f84e5b24a22e1eecc91918ea8875.zip
gcc-d5a10cf069a2f84e5b24a22e1eecc91918ea8875.tar.gz
gcc-d5a10cf069a2f84e5b24a22e1eecc91918ea8875.tar.bz2
re PR c++/15337 (sizeof on incomplete type diagnostic)
PR c++/15337 * error.c (c_sizeof_or_alignof_type): Use more detailed error message. PR c++/15766 * parser.c (cp_parser_iteration_statement): Fix typo in error message. PR c++/14777 * pt.c (tsubst_default_argument): Do not defer access checks while substituting into the default argument. PR c++/15554 * pt.c (tsubst_copy): Do not try to substitute for an enumeration constant in a non-dependent context. PR c++/15057 * except.c (build_throw): Ensure that temp_expr has been initialized. PR c++/15337 * g++.dg/expr/sizeof3.C: New test. PR c++/14777 * g++.dg/template/access14.C: New test. PR c++/15554 * g++.dg/template/enum1.C: New test. PR c++/15057 * g++.dg/eh/throw1.C: New test. From-SVN: r82693
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 4b2b355..89bc80e 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -3060,7 +3060,8 @@ c_sizeof_or_alignof_type (tree type, enum tree_code op, int complain)
else if (!COMPLETE_TYPE_P (type))
{
if (complain)
- error ("invalid application of `%s' to an incomplete type", op_name);
+ error ("invalid application of `%s' to incomplete type `%T' ",
+ op_name, type);
value = size_zero_node;
}
else