public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/94775] [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 since r8-4668-g8a5ee94a082b3d48
Date: Mon, 27 Apr 2020 17:19:41 +0000	[thread overview]
Message-ID: <bug-94775-4-y4q9os4xgZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94775-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The full stack trace shows the ICE occurs while formatting the text of a
warning.  strip_typedefs is being called while formatting the type of an array
of d and when assertion below fires:

      if (TYPE_USER_ALIGN (t) != TYPE_USER_ALIGN (result)
          || TYPE_ALIGN (t) != TYPE_ALIGN (result))
        {
          gcc_assert (TYPE_USER_ALIGN (t));
          if (remove_attributes)

during GIMPLE pass: vrp
in strip_typedefs, at cp/tree.c:1737
   41 | m n::ad() const {
      |   ^
0xc6cab1 strip_typedefs(tree_node*, bool*, unsigned int)
        /src/gcc/master/gcc/cp/tree.c:1737
0xa823d8 type_to_string
        /src/gcc/master/gcc/cp/error.c:3214
0xa861d6 cp_printer
        /src/gcc/master/gcc/cp/error.c:4289
0x268d13a pp_format(pretty_printer*, text_info*)
        /src/gcc/master/gcc/pretty-print.c:1458
0x2666327 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /src/gcc/master/gcc/diagnostic.c:1159
0x266694b diagnostic_impl
        /src/gcc/master/gcc/diagnostic.c:1309
0x26671c7 warning_at(unsigned int, int, char const*, ...)
        /src/gcc/master/gcc/diagnostic.c:1446
0x19b82ae vrp_prop::check_array_ref(unsigned int, tree_node*, bool)
        /src/gcc/master/gcc/tree-vrp.c:3578
0x19ba715 check_array_bounds
        /src/gcc/master/gcc/tree-vrp.c:4062
0x19f1508 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        /src/gcc/master/gcc/tree.c:12000
0x10ed4ac walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        /src/gcc/master/gcc/gimple-walk.c:202
0x19ba871 check_array_bounds_dom_walker::before_dom_children(basic_block_def*)
        /src/gcc/master/gcc/tree-vrp.c:4120
0x23f5aed dom_walker::walk(basic_block_def*)
        /src/gcc/master/gcc/domwalk.c:309
0x19ba8d5 vrp_prop::check_all_array_refs()
        /src/gcc/master/gcc/tree-vrp.c:4137
0x19bdb47 vrp_prop::vrp_finalize(bool)
        /src/gcc/master/gcc/tree-vrp.c:5209
0x19bdbdc execute_vrp
        /src/gcc/master/gcc/tree-vrp.c:5277
0x19bdddb execute
        /src/gcc/master/gcc/tree-vrp.c:5359
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

  parent reply	other threads:[~2020-04-27 17:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 15:24 [Bug tree-optimization/94775] New: [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 zhroma at gcc dot gnu.org
2020-04-26 19:34 ` [Bug tree-optimization/94775] " zhroma at gcc dot gnu.org
2020-04-27  4:33 ` [Bug tree-optimization/94775] [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 since r8-4668-g8a5ee94a082b3d48 marxin at gcc dot gnu.org
2020-04-27  6:44 ` rguenth at gcc dot gnu.org
2020-04-27 17:19 ` msebor at gcc dot gnu.org [this message]
2020-04-27 17:24 ` msebor at gcc dot gnu.org
2020-04-27 19:03 ` [Bug c++/94775] " msebor at gcc dot gnu.org
2020-04-29 17:30 ` mpolacek at gcc dot gnu.org
2020-04-29 17:31 ` mpolacek at gcc dot gnu.org
2020-04-29 17:40 ` jakub at gcc dot gnu.org
2020-04-29 17:51 ` mpolacek at gcc dot gnu.org
2020-04-30 12:35 ` cvs-commit at gcc dot gnu.org
2020-04-30 12:48 ` [Bug c++/94775] [8/9 " mpolacek at gcc dot gnu.org
2020-05-04 14:36 ` cvs-commit at gcc dot gnu.org
2020-05-04 14:42 ` cvs-commit at gcc dot gnu.org
2020-05-04 14:43 ` [Bug c++/94775] [8/9/10/11 " mpolacek at gcc dot gnu.org
2020-05-11 18:50 ` zhroma at gcc dot gnu.org
2020-05-11 18:53 ` mpolacek at gcc dot gnu.org
2021-01-28 15:51 ` mpolacek at gcc dot gnu.org
2021-01-28 21:23 ` cvs-commit at gcc dot gnu.org
2021-01-28 21:26 ` [Bug c++/94775] [8/9/10 " mpolacek at gcc dot gnu.org
2021-04-09 20:03 ` mpolacek 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-94775-4-y4q9os4xgZ@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).