[Bug c/65050] New: Show the type for "array type has incomplete element type" error
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 13 11:46:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65050
Bug ID: 65050
Summary: Show the type for "array type has incomplete element
type" error
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
In the following test case we have a few invalid decls. It would be nice if
the C FE showed the incomplete element type.
typedef int A[];
struct S { int i; A a[5]; } s;
extern void foo (int p[2][]);
extern void bar (A p[2]);
void
foo (int p[2][])
{
}
void
bar (A p[2])
{
}
struct T;
struct T t[5];
struct U u[] = { { "abc" } };
typedef struct T TT;
TT tt[5];
More information about the Gcc-bugs
mailing list