PR c/72816
* c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
array member through typedef, for orig_qual_indirect == 0 clear
orig_qual_type.
* gcc.dg/pr72816.c: New test.
From-SVN: r239371
+2016-08-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/72816
+ * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
+ array member through typedef, for orig_qual_indirect == 0 clear
+ orig_qual_type.
+
2016-08-08 David Malcolm <dmalcolm@redhat.com>
PR c/64955
type = build_distinct_type_copy (TYPE_MAIN_VARIANT (type));
TYPE_DOMAIN (type) = build_range_type (sizetype, size_zero_node,
NULL_TREE);
+ if (orig_qual_indirect == 0)
+ orig_qual_type = NULL_TREE;
}
type = c_build_qualified_type (type, type_quals, orig_qual_type,
orig_qual_indirect);
+2016-08-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/72816
+ * gcc.dg/pr72816.c: New test.
+
2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR tree-optimization/71083
typedef const int A[];
struct S {
int a;
- A b; /* { dg-error "array size missing" } */
+ A b;
};