[Bug c/17881] New: Incomplete type warning is issued even for prototypes

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 7 12:52:00 GMT 2004


struct S;
struct foo { void (*bar) (struct S); };
void baz (struct S);

struct S { int i; };

void baz (struct S s)
{
  (void) s.i;
}

warns about the incomplete type in prototype and function pointer, although
the size of the object is not needed in those cases.

-- 
           Summary: Incomplete type warning is issued even for prototypes
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17881



More information about the Gcc-bugs mailing list