aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog6
-rw-r--r--gcc/c/c-decl.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index ab917cb..08955a4 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-13 Marek Polacek <polacek@redhat.com>
+
+ PR c/65050
+ * c-decl.c (grokdeclarator): Print also the type when giving
+ the error message about array's incomplete element type.
+
2015-02-11 Jakub Jelinek <jakub@redhat.com>
PR c/64824
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 48c2bcb..4fd3239 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -5962,7 +5962,8 @@ grokdeclarator (const struct c_declarator *declarator,
/* Complain about arrays of incomplete types. */
if (!COMPLETE_TYPE_P (type))
{
- error_at (loc, "array type has incomplete element type");
+ error_at (loc, "array type has incomplete element type %qT",
+ type);
type = error_mark_node;
}
else