From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9B223877416; Thu, 19 Aug 2021 05:52:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9B223877416 From: "cnsun at uwaterloo dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101974] New: ICE on compilable code: in from_mode_char, at attribs.h:304 Date: Thu, 19 Aug 2021 05:52:38 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca 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 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, 19 Aug 2021 05:52:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101974 Bug ID: 101974 Summary: ICE on compilable code: in from_mode_char, at attribs.h:304 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cnsun at uwaterloo dot ca Target Milestone: --- $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210818 (experimental) [master revision :ac65007c1:2d14d64bf2d42a87ec58dd3760be12aeaa4a4279] (GCC) $ cat mutant.c __attribute__((access("+nosimd"))) rdonly_v_all(); $ gcc-trunk mutant.c mutant.c:1:36: warning: type defaults to =E2=80=98int=E2=80=99 in declarati= on of =E2=80=98rdonly_v_all=E2=80=99 [-Wimplicit-int] 1 | __attribute__((access("+nosimd"))) rdonly_v_all(); | ^~~~~~~~~~~~ mutant.c:1:1: internal compiler error: in from_mode_char, at attribs.h:304 1 | __attribute__((access("+nosimd"))) rdonly_v_all(); | ^~~~~~~~~~~~~ 0x64da68 attr_access::from_mode_char(char) /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.h:304 0x64da68 init_attr_rdwr_indices(hash_map, attr_access> >= *, tree_node*) /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.c:2138 0x9f7802 append_access_attr /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-attribs.c:4472 0x9f8612 handle_access_attribute /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-attribs.c:4718 0x8efeb6 decl_attributes(tree_node**, tree_node*, int, tree_node*) /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.c:715 0x90c67e start_decl(c_declarator*, c_declspecs*, bool, tree_node*, unsigned int*) /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-decl.c:5201 0x969715 c_parser_declaration_or_fndef /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:2306 0x973723 c_parser_external_declaration /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:1778 0x97418b c_parser_translation_unit /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:1651 0x97418b c_parse_file() /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:22302 0x9d6515 c_common_parse_file() /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-opts.c:1223 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=