public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65050] New: Show the type for "array type has incomplete element type" error
@ 2015-02-13 11:46 mpolacek at gcc dot gnu.org
  2015-02-13 11:46 ` [Bug c/65050] " mpolacek at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-02-13 11:46 UTC (permalink / raw)
  To: gcc-bugs

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];


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-13 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 11:46 [Bug c/65050] New: Show the type for "array type has incomplete element type" error mpolacek at gcc dot gnu.org
2015-02-13 11:46 ` [Bug c/65050] " mpolacek at gcc dot gnu.org
2015-02-13 22:08 ` mpolacek at gcc dot gnu.org
2015-02-13 22:09 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).