public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/107198] [13/14 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 since r13-3175-g6ffbf87ca66f4ed9
Date: Wed, 07 Jun 2023 19:51:38 +0000	[thread overview]
Message-ID: <bug-107198-4-GgxL34x8eg@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-107198-4@http.gcc.gnu.org/bugzilla/>

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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2022-10-10 00:00:00         |2023-6-7
                 CC|                            |tschwinge at gcc dot gnu.org

--- Comment #4 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Reconfirmed.

Given native x86_64-pc-linux-gnu build of one-week-old commit
2720bbd597f56742a17119dfe80edc2ba86af255, running 'g++.dg/eh/aggregate1.C' with
'-fno-exceptions':

    $ make check-gcc-c++ RUNTESTFLAGS='--target_board=unix/-fno-exceptions
dg.exp=aggregate1.C'

..., I see ICEs not for '-std=c++98', but for '-std=c++14' and higher:

    UNSUPPORTED: g++.dg/eh/aggregate1.C  -std=c++98: exception handling
disabled
    FAIL: g++.dg/eh/aggregate1.C  -std=c++14 (internal compiler error: in
cp_gimplify_expr, at cp/cp-gimplify.cc:782)
    UNSUPPORTED: g++.dg/eh/aggregate1.C  -std=c++14: exception handling
disabled
    FAIL: g++.dg/eh/aggregate1.C  -std=c++17 (internal compiler error: in
cp_gimplify_expr, at cp/cp-gimplify.cc:782)
    UNSUPPORTED: g++.dg/eh/aggregate1.C  -std=c++17: exception handling
disabled
    FAIL: g++.dg/eh/aggregate1.C  -std=c++20 (internal compiler error: in
cp_gimplify_expr, at cp/cp-gimplify.cc:782)
    UNSUPPORTED: g++.dg/eh/aggregate1.C  -std=c++20: exception handling
disabled

    [...]/g++.dg/eh/aggregate1.C: In constructor 'A::A()':
    [...]/g++.dg/eh/aggregate1.C:18:47: error: exception handling disabled, use
'-fexceptions' to enable
    [...]/g++.dg/eh/aggregate1.C: In function 'void try_idx(int)':
    [...]/g++.dg/eh/aggregate1.C:40:25: error: 'x' was not declared in this
scope
    [...]/g++.dg/eh/aggregate1.C:39:40: internal compiler error: in
cp_gimplify_expr, at cp/cp-gimplify.cc:782
    0x6f7024 cp_gimplify_expr(tree_node**, gimple**, gimple**)
            [...]/gcc/cp/cp-gimplify.cc:782
    0x13d6cfd gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16331
    0x13dcf9d gimplify_init_ctor_eval_range
            [...]/gcc/gimplify.cc:4929
    0x13dcf9d gimplify_init_ctor_eval
            [...]/gcc/gimplify.cc:5008
    0x13dce55 gimplify_init_ctor_eval
            [...]/gcc/gimplify.cc:5033
    0x13dd671 gimplify_init_constructor
            [...]/gcc/gimplify.cc:5447
    0x13ea18d gimplify_modify_expr
            [...]/gcc/gimplify.cc:6127
    0x13d76ea gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16422
    0x13e8567 gimplify_stmt(tree_node**, gimple**)
            [...]/gcc/gimplify.cc:7238
    0x13e8567 gimplify_compound_expr
            [...]/gcc/gimplify.cc:6431
    0x13d7aae gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16412
    0x13d80f8 gimplify_cleanup_point_expr
            [...]/gcc/gimplify.cc:7238
    0x13d80f8 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16815
    0x13da0a6 gimplify_stmt(tree_node**, gimple**)
            [...]/gcc/gimplify.cc:7238
    0x13d89a8 gimplify_statement_list
            [...]/gcc/gimplify.cc:2019
    0x13d89a8 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16867
    0x13da0a6 gimplify_stmt(tree_node**, gimple**)
            [...]/gcc/gimplify.cc:7238
    0x13d89a8 gimplify_statement_list
            [...]/gcc/gimplify.cc:2019
    0x13d89a8 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
            [...]/gcc/gimplify.cc:16867
    0x13d80f8 gimplify_cleanup_point_expr
            [...]/gcc/gimplify.cc:7238

  parent reply	other threads:[~2023-06-07 19:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10  8:29 [Bug c++/107198] New: [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 asolokha at gmx dot com
2022-10-10  9:23 ` [Bug c++/107198] " rguenth at gcc dot gnu.org
2022-10-10 13:31 ` [Bug c++/107198] [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 since r13-3175-g6ffbf87ca66f4ed9 marxin at gcc dot gnu.org
2022-10-12  7:51 ` marxin at gcc dot gnu.org
2022-10-18  8:33 ` rguenth at gcc dot gnu.org
2023-04-26  6:56 ` [Bug c++/107198] [13/14 " rguenth at gcc dot gnu.org
2023-06-07 19:51 ` tschwinge at gcc dot gnu.org [this message]
2023-07-27  9:23 ` rguenth at gcc dot gnu.org
2023-09-06  6:16 ` gayathri.gottumukkala.27 at gmail dot com
2023-09-06 13:27 ` mpolacek at gcc dot gnu.org
2023-09-06 14:41 ` jason at gcc dot gnu.org
2023-09-12 17:27 ` cvs-commit at gcc dot gnu.org
2023-09-12 17:42 ` jason 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-107198-4-GgxL34x8eg@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).