Commit f3b5cf3d by Martin Sebor Committed by Martin Sebor

PR objc++/68932 - FAIL: obj-c++.dg/property/at-property-23.mm -fgnu-runtime

PR objc++/68932  - FAIL: obj-c++.dg/property/at-property-23.mm -fgnu-runtime
                   (internal compiler error)

cp/
	* decl.c (grokdeclarator): Avoid assuming ctype is non-null when
	checking the validity of a flexible array member.

testsuite/
	* obj-c++.dg/property/at-property-23.mm: Remove check for
	an error message.

From-SVN: r231726
parent 9625f2a2
2015-12-16 Martin Sebor <msebor@redhat.com>
PR objc++/68932
* decl.c (grokdeclarator): Avoid assuming ctype is non-null when
checking the validity of a flexible array member.
2015-12-16 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (comp_template_args): Remove.
......
......@@ -10933,8 +10933,9 @@ grokdeclarator (const cp_declarator *declarator,
if (!staticp && TREE_CODE (type) == ARRAY_TYPE
&& TYPE_DOMAIN (type) == NULL_TREE)
{
if (TREE_CODE (ctype) == UNION_TYPE
|| TREE_CODE (ctype) == QUAL_UNION_TYPE)
if (ctype
&& (TREE_CODE (ctype) == UNION_TYPE
|| TREE_CODE (ctype) == QUAL_UNION_TYPE))
{
error ("flexible array member in union");
type = error_mark_node;
......
2015-12-16 Martin Sebor <msebor@redhat.com>
PR objc++/68932
* obj-c++.dg/property/at-property-23.mm: Remove check for
an error message.
2015-12-13 Jeff Law <law@redhat.com>
* gcc.dg/tree-ssa/pr68619-4.c: Change size of code bitfield.
......
......@@ -14,5 +14,4 @@
@property int a[8]; /* { dg-error "property can not be an array" } */
@property int b:8; /* { dg-error "expected" } */
@property int c[]; /* { dg-error "property can not be an array" } */
/* { dg-error "ISO C.. forbids zero-size array" "" { target *-*-* } 16 } */
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment