public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101838] New: sizeof of struct with array of unspecified bound folded to constant
@ 2021-08-10  5:57 muecker at gwdg dot de
  2021-08-10 21:17 ` [Bug c/101838] " muecker at gwdg dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: muecker at gwdg dot de @ 2021-08-10  5:57 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2021-08-14 17:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10  5:57 [Bug c/101838] New: sizeof of struct with array of unspecified bound folded to constant muecker at gwdg dot de
2021-08-10 21:17 ` [Bug c/101838] " muecker at gwdg dot de
2021-08-12 18:37 ` cvs-commit at gcc dot gnu.org
2021-08-14 17:47 ` muecker at gwdg dot de

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).