From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47D79385354A; Tue, 6 Sep 2022 17:14:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47D79385354A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662484489; bh=NMWwfd/4HADD1vplML3vcakjxeDr8Mcv5yOsr1diFhY=; h=From:To:Subject:Date:From; b=IBd70oHrrXLmozRpS2q/dXSceuVTS6XHobKTrsNe38+sn72CAceainQZl6N40HCFu /qlTrEvMkBXhvRcva0CtnIA40CLtPHeo8DPzDjvDhaQs0U5DhLx2+eR0xR644gABg1 WSw5zNwuwCddCIE+eCp/I9D2moPSjM/vukaeCVpo= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106858] New: [12/13 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'baselink' in cp_ubsan_maybe_instrument_member_access, at cp/cp-ubsan.cc:172 Date: Tue, 06 Sep 2022 17:14:48 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106858 Bug ID: 106858 Summary: [12/13 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'baselink' in cp_ubsan_maybe_instrument_member_access, at cp/cp-ubsan.cc:172 Product: gcc Version: 13.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 : (gcc configured with --enable-checking=3Dyes) $ cat z1.cc class A { void f() { #pragma omp target map(this->f) ; } }; $ g++-13-20220904 -c z1.cc -fopenmp $ $ g++-13-20220904 -c z1.cc -fopenmp -fsanitize=3Dundefined z1.cc: In member function 'void A::f()': z1.cc:5:3: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'baselink' in cp_ubsan_maybe_instrument_member_access, at cp/cp-ubsan.cc:172 5 | } | ^ 0x6fa541 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.cc:9001 0x8a0efc contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/tree.h:3634 0x8a0efc cp_ubsan_maybe_instrument_member_access ../../gcc/cp/cp-ubsan.cc:172 0x8a0efc cp_ubsan_check_member_access_r ../../gcc/cp/cp-ubsan.cc:231 0x152cac3 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ../../gcc/tree.cc:11247 0x152d35d walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ../../gcc/tree.cc:11370 0x8a140d cp_ubsan_instrument_member_accesses(tree_node**) ../../gcc/cp/cp-ubsan.cc:268 0x891bd7 cp_genericize_tree ../../gcc/cp/cp-gimplify.cc:1792 0x891d96 cp_genericize(tree_node*) ../../gcc/cp/cp-gimplify.cc:1931 0x8eb95f finish_function(bool) ../../gcc/cp/decl.cc:18058 0xa20fb3 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.cc:31480 0xa21358 cp_parser_late_parsing_for_member ../../gcc/cp/parser.cc:32444 0x9f25ca cp_parser_class_specifier ../../gcc/cp/parser.cc:26399 0x9f3a7c cp_parser_type_specifier ../../gcc/cp/parser.cc:19488 0x9f4796 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:16038 0x9f5411 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15286 0xa29c2f cp_parser_declaration ../../gcc/cp/parser.cc:15099 0xa2a758 cp_parser_translation_unit ../../gcc/cp/parser.cc:5068 0xa2a758 c_parse_file() ../../gcc/cp/parser.cc:48595 0xbbe741 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1255=