https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101838

            Bug ID: 101838
           Summary: sizeof of struct with array of unspecified bound
                    folded to constant
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: muecker at gwdg dot de
  Target Milestone: ---

In this example the size of is folded to zero:

int foo(struct { int z[*]; } v, int (*y)[sizeof v]);


c_vla_type_p should probably be replaced by C_VARIABLE_SIZE
in c_expr_sizeof_type.

Reply via email to