diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-29 17:32:27 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-29 17:32:27 +0000 |
commit | 4ebf85beb887adfcda41872f0774680d6bac36dc (patch) | |
tree | 58ea3177c7c813d40c09549bd37058fa5b03aa2d /gcc/c | |
parent | ad23bd2681962c566e75597a6460b54e93261f0b (diff) | |
download | gcc-4ebf85beb887adfcda41872f0774680d6bac36dc.tar.gz |
PR c/71742
* c-decl.c (finish_struct): Rephrase an error message.
* gcc.dg/940510-1.c: Adjust dg-error.
* gcc.dg/c99-flex-array-1.c: Likewise.
* gcc.dg/c99-flex-array-typedef-1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index d512a3da482..89ca5aa81ec 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2016-07-29 Marek Polacek <polacek@redhat.com> + + PR c/71742 + * c-decl.c (finish_struct): Rephrase an error message. + 2016-07-29 Jakub Jelinek <jakub@redhat.com> PR c/71969 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index f2773c5bb72..9a922cc6f06 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -7880,7 +7880,8 @@ finish_struct (location_t loc, tree t, tree fieldlist, tree attributes, else if (!saw_named_field) { error_at (DECL_SOURCE_LOCATION (x), - "flexible array member in otherwise empty struct"); + "flexible array member in a struct with no named " + "members"); TREE_TYPE (x) = error_mark_node; } } |