public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102295] New: ELF symbol sizes for variable-length objects are too small (C++)
@ 2021-09-12 22:46 pinskia at gcc dot gnu.org
  2021-09-12 23:15 ` [Bug c++/102295] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-12 22:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102295
           Summary: ELF symbol sizes for variable-length objects are too
                    small (C++)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Like PR 63373 but this one is for C++ (since the C front-end has been fixed
since GCC 5), GCC's C++ front-end only started to accept this in GCC 6 too.

Take:

struct blah
{
        float foo;
        int i[];
};

struct blah b = { 42.0, { 1, 2, 3, 4, 0 } };
------ CUT ----
GCC's C++ front-end outputs:
        .size   b, 4

Which is wrong, it should be 24.

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

end of thread, other threads:[~2022-05-11  6:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12 22:46 [Bug c++/102295] New: ELF symbol sizes for variable-length objects are too small (C++) pinskia at gcc dot gnu.org
2021-09-12 23:15 ` [Bug c++/102295] " pinskia at gcc dot gnu.org
2021-09-13 16:34 ` jakub at gcc dot gnu.org
2021-09-13 16:38 ` jakub at gcc dot gnu.org
2021-09-13 20:40 ` pinskia at gcc dot gnu.org
2021-09-14 14:57 ` cvs-commit at gcc dot gnu.org
2021-09-14 14:59 ` jakub at gcc dot gnu.org
2021-09-15 20:22 ` cvs-commit at gcc dot gnu.org
2021-09-15 23:05 ` cvs-commit at gcc dot gnu.org
2021-09-15 23:05 ` cvs-commit at gcc dot gnu.org
2021-09-16  8:50 ` jakub at gcc dot gnu.org
2022-05-10  8:20 ` cvs-commit at gcc dot gnu.org
2022-05-10  8:20 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:22 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:22 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub 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).