From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32D53388460D; Tue, 29 Mar 2022 08:02:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32D53388460D From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/105093] New: ICE in expand_expr_addr_expr_1, at expr.c:7607 since r6-3529-gf11a7b6d57f6fcba Date: Tue, 29 Mar 2022 08:02:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2022 08:02:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105093 Bug ID: 105093 Summary: ICE in expand_expr_addr_expr_1, at expr.c:7607 since r6-3529-gf11a7b6d57f6fcba Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: aoliva at gcc dot gnu.org, dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- The following crashes: $ cat nrvo.cpp struct X { X(); ~X(); }; volatile X test21() { X x; return x; } $ g++ nrvo.cpp -c -O2 -fsanitize=3Dundefined -c during RTL pass: expand nrvo.cpp: In function =E2=80=98volatile X test21()=E2=80=99: nrvo.cpp:5:12: internal compiler error: in expand_expr_addr_expr_1, at expr.cc:8435 5 | volatile X test21() { | ^~~~~~ 0x7ea241 expand_expr_addr_expr_1 /home/marxin/Programming/gcc/gcc/expr.cc:8435 0xe95b46 expand_expr_addr_expr /home/marxin/Programming/gcc/gcc/expr.cc:8548 0xe95b46 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.cc:11767 0xe927fc expand_expr /home/marxin/Programming/gcc/gcc/expr.h:301 0xe927fc expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.cc:9057 0xe96da6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.cc:10504 0xe99414 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:301 0xe99414 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.cc:8314 0xe8fb82 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.cc:9281 0xe96da6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.cc:10504 0xe99414 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:301 0xe99414 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.cc:8314 0xe8f8b2 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.cc:10295 0xd626c5 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.cc:3972 0xd626c5 expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.cc:4033 0xd684f4 expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.cc:6080 0xd6a6c7 execute /home/marxin/Programming/gcc/gcc/cfgexpand.cc:6806 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=