public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/99106] [9 Regression] ICE in tree_to_poly_int64, at tree.c:3091
Date: Thu, 22 Apr 2021 16:50:57 +0000	[thread overview]
Message-ID: <bug-99106-4-VajgVaUriP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99106-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:3a51e6261f7d98d54fc370125b1895542c3cdce9

commit r8-10886-g3a51e6261f7d98d54fc370125b1895542c3cdce9
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Feb 17 15:03:25 2021 +0100

    c++: Fix up build_zero_init_1 once more [PR99106]

    My earlier build_zero_init_1 patch for flexible array members created
    an empty CONSTRUCTOR.  As the following testcase shows, that doesn't work
    very well because the middle-end doesn't expect CONSTRUCTOR elements with
    incomplete type (that the empty CONSTRUCTOR at the end of outer CONSTRUCTOR
    had).

    The following patch just doesn't add any CONSTRUCTOR for the flexible array
    members, it doesn't seem to be needed.

    2021-02-17  Jakub Jelinek  <jakub@redhat.com>

            PR sanitizer/99106
            * init.c (build_zero_init_1): For flexible array members just
return
            NULL_TREE instead of returning empty CONSTRUCTOR with non-complete
            ARRAY_TYPE.

            * g++.dg/ubsan/pr99106.C: New test.

    (cherry picked from commit af868e89ec21340d1cafd26eaed356ce4b0104c3)

  parent reply	other threads:[~2021-04-22 16:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 14:23 [Bug sanitizer/99106] New: " marxin at gcc dot gnu.org
2021-02-16  7:23 ` [Bug sanitizer/99106] [9/10/11 Regression] " rguenth at gcc dot gnu.org
2021-02-16 15:30 ` jakub at gcc dot gnu.org
2021-02-17 14:04 ` cvs-commit at gcc dot gnu.org
2021-02-22 16:50 ` [Bug sanitizer/99106] [9/10 " jakub at gcc dot gnu.org
2021-03-19 23:29 ` cvs-commit at gcc dot gnu.org
2021-03-20  8:08 ` [Bug sanitizer/99106] [9 " jakub at gcc dot gnu.org
2021-04-20 23:32 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:50 ` cvs-commit at gcc dot gnu.org [this message]
2021-04-22 17:11 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-99106-4-VajgVaUriP@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).