From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D1133858416; Mon, 7 Nov 2022 18:14:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D1133858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667844853; bh=wJ3oaW9bpQMpqWR/1lBrvOgaMEhy5O4oeB+M4O1bC5A=; h=From:To:Subject:Date:From; b=H0GlfNb3FBvDgtfS9NabIvcGpw0rJ1NxqiS4Oeqt3CIzyXXGwRi3UYmpQ+mQcVizr eett2Ww12fWhZuy7J13At5L3urW5YfBM+3SVk3DAwaDqcWUti0qjY5z8+IRvdn291X dcyAmtGM4HBE0Psuujb9HplCrhJbgdhK2BPBQINw= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107558] New: [10/11/12/13 Regression] ICE in fld_incomplete_type_of, at ipa-free-lang-data.cc:258 Date: Mon, 07 Nov 2022 18:14:13 +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=3D107558 Bug ID: 107558 Summary: [10/11/12/13 Regression] ICE in fld_incomplete_type_of, at ipa-free-lang-data.cc:258 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 with r9, between 20200508 and 20200612, reduced from file llvm-project-llvmorg-14.0.6/clang/test/OpenMP/nvptx_lambda_capturing.cpp : $ cat z1.cc template int foo(const T &t) { #pragma omp target parallel t(); return 0; } struct S { int a =3D 15; int foo() { auto &&L =3D [&]() { return a; }; #pragma omp target L(); #pragma omp target parallel L(); return a + ::foo(L); } } s; int main(int argc, char **argv) { int &b =3D argc; int &&c =3D 1; int *d =3D &argc; int a; auto &&L =3D [&]() { return argc + b + c + reinterpret_cast(d) = + a; }; #pragma omp target firstprivate(argc) map(to : a) L(); #pragma omp target parallel L(); return argc + s.foo(); } $ cat z2.cc int a =3D 15; int foo() { auto &&L =3D [&]() { return a; }; #pragma omp target parallel L(); } $ gcc-13-20221106 -c z2.cc -fopenmp -flto -fmerge-all-constants z2.cc: In function 'int foo()': z2.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type] 6 | } | ^ during IPA pass: *free_lang_data z2.cc: At global scope: z2.cc:6:1: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:258 0x1aa1387 fld_incomplete_type_of ../../gcc/ipa-free-lang-data.cc:257 0x1aa26dd fld_simplified_type ../../gcc/ipa-free-lang-data.cc:344 0x1aa26dd free_lang_data_in_decl ../../gcc/ipa-free-lang-data.cc:653 0x1aa26dd free_lang_data_in_cgraph ../../gcc/ipa-free-lang-data.cc:1068 0x1aa26dd free_lang_data ../../gcc/ipa-free-lang-data.cc:1109 0x1aa26dd execute ../../gcc/ipa-free-lang-data.cc:1176=