From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8028A3858D3C; Mon, 14 Feb 2022 19:53:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8028A3858D3C From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/104532] New: ICE in lvalue_p, at c/c-typeck.cc:4987 Date: Mon, 14 Feb 2022 19:53:20 +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: gscfq@t-online.de 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: Mon, 14 Feb 2022 19:53:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104532 Bug ID: 104532 Summary: ICE in lvalue_p, at c/c-typeck.cc:4987 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20211205 and 20211212 : $ cat z1.c void f (int x) { #pragma omp target enter data map (to: x->vectors) } $ cat z2.c void f (int x) { #pragma omp target enter data map (to: x->vectors[]) } $ gcc-12-20220213 -c z1.c -fopenmp z1.c: In function 'f': z1.c:3:11: internal compiler error: Segmentation fault 3 | #pragma omp target enter data map (to: x->vectors) | ^~~ 0xc1c3cf crash_signal ../../gcc/toplev.cc:322 0x6c1a46 lvalue_p(tree_node const*) ../../gcc/c/c-typeck.cc:4987 0x6ca5a8 build_component_ref(unsigned int, tree_node*, tree_node*, unsigned int) ../../gcc/c/c-typeck.cc:2470 0x6f742e c_parser_omp_variable_list ../../gcc/c/c-parser.cc:13161 0x6f81dc c_parser_omp_clause_map ../../gcc/c/c-parser.cc:16260 0x700262 c_parser_omp_all_clauses ../../gcc/c/c-parser.cc:17057 0x70d6ae c_parser_omp_target_enter_data ../../gcc/c/c-parser.cc:20904 0x70d6ae c_parser_omp_target ../../gcc/c/c-parser.cc:21195 0x6e7a44 c_parser_pragma ../../gcc/c/c-parser.cc:12499 0x7054a6 c_parser_compound_statement_nostart ../../gcc/c/c-parser.cc:5767 0x705873 c_parser_compound_statement ../../gcc/c/c-parser.cc:5609 0x707128 c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2544 0x70e85f c_parser_external_declaration ../../gcc/c/c-parser.cc:1779 0x70f18b c_parser_translation_unit ../../gcc/c/c-parser.cc:1652 0x70f18b c_parse_file() ../../gcc/c/c-parser.cc:23348 0x760792 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1238=