From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF0A7385E006; Thu, 26 Mar 2020 20:13:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF0A7385E006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585253631; bh=M2w41uzJ2Lot//6Fr3WkoiaWOrCEwp86Xj7im0kFi+s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lut1OO8CpgDho5ZGYc24vLlvYpZpS14IGift9pzTNvN17vQfvNxuVI9OF4Z74QXUV DxMb9BwRr/+JMXBty/2s0D39z/yfNnkmkVt813yiuyWvntNOlNaoqxO/mjH1PAj7Jo l1ccc/N7ti9iQpTVoJnk4B1xi8kq6EBiypu1D/1o= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94346] [9/10 Regression] ICE due to handle_copy_attribute since r9-3982 Date: Thu, 26 Mar 2020 20:13:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: 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: Thu, 26 Mar 2020 20:13:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94346 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #2 from Martin Sebor --- diag_attr_exclusions() expects either a DECL or a TYPE but here it gets an expression: $ gcc -S pr94346.c pr94346.c:8:33: internal compiler error: tree check: expected class =E2=80= =98type=E2=80=99, have =E2=80=98expression=E2=80=99 (compound_expr) in diag_attr_exclusions, = at attribs.c:396 8 | ATTR (copy ((bar (), ((struct A *)(0))[0]))) int m; | ^ pr94346.c:1:35: note: in definition of macro =E2=80=98ATTR=E2=80=99 1 | #define ATTR(...) __attribute__ ((__VA_ARGS__)) | ^~~~~~~~~~~ 0x16c3530 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /src/gcc/trunk/gcc/tree.c:9745 0x8c8271 tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) /src/gcc/trunk/gcc/tree.h:3401 0x8c1c5c diag_attr_exclusions /src/gcc/trunk/gcc/attribs.c:396 0x8c1b67 diag_attr_exclusions /src/gcc/trunk/gcc/attribs.c:379 0x8c2b75 decl_attributes(tree_node**, tree_node*, int, tree_node*) /src/gcc/trunk/gcc/attribs.c:694 0xa45e02 handle_copy_attribute /src/gcc/trunk/gcc/c-family/c-attribs.c:2628 0x8c2c55 decl_attributes(tree_node**, tree_node*, int, tree_node*) /src/gcc/trunk/gcc/attribs.c:713 0x95422d c_parser_struct_declaration /src/gcc/trunk/gcc/c/c-parser.c:3620 0x953a6b c_parser_struct_or_union_specifier /src/gcc/trunk/gcc/c/c-parser.c:3413 0x9528fb c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool, bool, bool, bool, c_lookahead_kind) /src/gcc/trunk/gcc/c/c-parser.c:2962 0x95031f c_parser_declaration_or_fndef /src/gcc/trunk/gcc/c/c-parser.c:1960 0x94fe3c c_parser_external_declaration /src/gcc/trunk/gcc/c/c-parser.c:1745 0x94f95d c_parser_translation_unit /src/gcc/trunk/gcc/c/c-parser.c:1618 0x98da25 c_parse_file() /src/gcc/trunk/gcc/c/c-parser.c:21718 0xa19299 c_common_parse_file() /src/gcc/trunk/gcc/c-family/c-opts.c:1186 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=