From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 211F1388450F; Wed, 19 Jun 2024 11:21:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 211F1388450F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718796113; bh=rJ8QGmWmSg0xZCoP7JI+7tIXmCBBP6a36nC22VIQnzc=; h=From:To:Subject:Date:From; b=EOvXdUfxiFRN3xCp0ItE/C216I6fW14eIDkxUVLnJVJtb6BzmIAN1JhfRoHH9+FAo LbPDRS9Uy+qzemx1+2Jk/85TnLavKIrsx5bLVKmpbh8MbVU650tXT67qUuoFYVrnAn aMAPjKulM7a2UxBnUlHIEtNN/zYpVQD1P/KtnD/Q= From: "iamanonymous.cs at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzExNTU0OV0gTmV3OiBJQ0U6IHRyZWUgY2hlY2s6IGV4?= =?UTF-8?B?cGVjdGVkIHRyZWUgdGhhdCBjb250YWlucyDigJhkZWNsIGNvbW1vbuKAmSBz?= =?UTF-8?B?dHJ1Y3R1cmUsIGhhdmUg4oCYZXJyb3JfbWFya+KAmSBpbiBjb21tb25faGFu?= =?UTF-8?B?ZGxlX2FsaWduZWRfYXR0cmlidXRlLCBhdCBjLWZhbWlseS9jLWF0dHJpYnMu?= =?UTF-8?B?Y2M6MjY2NSB3aXRoIGludmFsaWQgYWxpZ25lZCBhdHRyaWJ1dGU=?= Date: Wed, 19 Jun 2024 11:21:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iamanonymous.cs at gmail dot com 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115549 Bug ID: 115549 Summary: ICE: tree check: expected tree that contains =E2=80=98d= ecl common=E2=80=99 structure, have =E2=80=98error_mark=E2= =80=99 in common_handle_aligned_attribute, at c-family/c-attribs.cc:2665 with invalid aligned attribute Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- ICE on trunk. Compiler Explorer: https://godbolt.org/z/zcab6cfWj ***************************************************************************= **** OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ***************************************************************************= **** gcc version: Using built-in specs. COLLECT_GCC=3D/root/gcc_set/trunk-48a320a/bin/gcc COLLECT_LTO_WRAPPER=3D/root/gcc_set/trunk-48a320a/libexec/gcc/x86_64-pc-lin= ux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/root/gcc_set/trunk-48a320a --with-gmp=3D/root/build_essential --with-mpfr=3D/root/build_essential --with-mpc=3D/root/build_essential --enable-languages=3Dc,c++ --disable-mul= tilib --with-sanitizer=3Daddress,undefined,thread,leak --enable-coverage --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20240426 (experimental) (GCC)=20 ***************************************************************************= **** Program: $ cat mutant.c __attribute__((aligned, optimize(s),)0) s() ***************************************************************************= **** Command Lines: $ gcc mutant.c mutant.c:1:34: error: =E2=80=98s=E2=80=99 undeclared here (not in a functio= n) 1 | __attribute__((aligned, optimize(s),)0) s() | ^ mutant.c:1:38: error: expected =E2=80=98)=E2=80=99 before numeric constant 1 | __attribute__((aligned, optimize(s),)0) s() | ^ | ) mutant.c:1:1: internal compiler error: tree check: expected tree that conta= ins =E2=80=98decl common=E2=80=99 structure, have =E2=80=98error_mark=E2=80=99 = in common_handle_aligned_attribute, at c-family/c-attribs.cc:2665 1 | __attribute__((aligned, optimize(s),)0) s() | ^~~~~~~~~~~~~ 0x25433e9 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.cc:9130 0xd34731 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.h:3770 0x10360bf common_handle_aligned_attribute ../../gcc/gcc/c-family/c-attribs.cc:2665 0x103692a handle_aligned_attribute ../../gcc/gcc/c-family/c-attribs.cc:2750 0xd2acd9 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/gcc/attribs.cc:900 0xd598f1 c_decl_attributes ../../gcc/gcc/c/c-decl.cc:5497 0xd795ab start_function(c_declspecs*, c_declarator*, tree_node*) ../../gcc/gcc/c/c-decl.cc:10483 0xe40891 c_parser_declaration_or_fndef ../../gcc/gcc/c/c-parser.cc:2912 0xe3c6ed c_parser_external_declaration ../../gcc/gcc/c/c-parser.cc:2046 0xe3bbd7 c_parser_translation_unit ../../gcc/gcc/c/c-parser.cc:1900 0xeccd02 c_parse_file() ../../gcc/gcc/c/c-parser.cc:26889 0xfe8faa c_common_parse_file() ../../gcc/gcc/c-family/c-opts.cc:1311 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.=