From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B68F93851C03; Mon, 29 Jun 2020 18:36:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B68F93851C03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593455776; bh=LJ/ZrHOlGcsNj2z7nu8zfikv5uldRQF9cNIa+/Gc8ZM=; h=From:To:Subject:Date:From; b=iMedern73B/543J7Be7461fs0YHqttY1pCUuEgqwk36nzoH1BBaXIMosh1k98G/UH 1+nVmtUGcqLV3rBNLulc00dwrvYlBzQ+gsKbrQ6YFbUq/iUV4MPq53PVDnv0NLCJKv LXkvRKWq1t2QFTmX+PCF9HaPdpOjZpCiVNWL3sn0= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95984] New: [11 Regression] Internal compiler error: Error reporting routines re-entered. since r11-1697-g75ff24e1920ea6b1 Date: Mon, 29 Jun 2020 18:36:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc 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, 29 Jun 2020 18:36:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95984 Bug ID: 95984 Summary: [11 Regression] Internal compiler error: Error reporting routines re-entered. since r11-1697-g75ff24e1920ea6b1 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- Since the revision I see: $ cat /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C // PR c++/78816 // { dg-do compile { target c++14 } } void f(void (*f1)(int)) { f1(42); } template static auto callback(Lambda &&l) { static auto* p =3D &l; p =3D &l; return [](auto... x){ return (*p)(x...); }; } int main() { int x =3D 5; f(callback([=3D](int y){})); } $ g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C -Wnonnull /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C: In substitution of =E2=80=98template constexpr callback >::::operator decltype (((const callback >::*)0)->operator()(static_cast(callback::._anon_2::_FUN::) ...)) (*)(auto:1 ...)() const [with auto:1 =3D {int}]=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C:18:27: required from here /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C:13:10: warning: =E2=80=98this=E2=80=99 pointer null [-Wnonnull] 13 | return [](auto... x){ return (*p)(x...); }; | ^ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vari= adic6.C:13:10: note: in a call to non-static member function =E2=80=98callback >:: [with auto:1 =3D {int}]=E2=80=99 =E2=80=98 Internal compiler error: Error reporting routines re-entered. 0xb04ef1 check_nonnull_arg /home/marxin/Programming/gcc/gcc/c-family/c-common.c:5523 0xb05f72 check_function_arguments_recurse(void (*)(void*, tree_node*, unsig= ned long), void*, tree_node*, unsigned long) /home/marxin/Programming/gcc/gcc/c-family/c-common.c:5881 0xb05cd1 check_function_arguments_recurse(void (*)(void*, tree_node*, unsig= ned long), void*, tree_node*, unsigned long) /home/marxin/Programming/gcc/gcc/c-family/c-common.c:5813 0xb043e8 check_function_nonnull /home/marxin/Programming/gcc/gcc/c-family/c-common.c:5315 0xb05a9e check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec*) /home/marxin/Programming/gcc/gcc/c-family/c-common.c:5764 0x867a94 build_over_call /home/marxin/Programming/gcc/gcc/cp/call.c:8868 0x869e3c build_new_method_call_1 /home/marxin/Programming/gcc/gcc/cp/call.c:10348 0x86ad5f build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) /home/marxin/Programming/gcc/gcc/cp/call.c:10423 0xa2b3f2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:20042 0xa2d1c0 tsubst(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.c:15913 0x935ad7 dump_template_bindings /home/marxin/Programming/gcc/gcc/cp/error.c:416 0x935d30 dump_substitution /home/marxin/Programming/gcc/gcc/cp/error.c:1562 0x935d30 dump_substitution /home/marxin/Programming/gcc/gcc/cp/error.c:1550 0x92f610 dump_function_decl /home/marxin/Programming/gcc/gcc/cp/error.c:1720 0x937178 decl_to_string /home/marxin/Programming/gcc/gcc/cp/error.c:3101 0x937178 cp_printer /home/marxin/Programming/gcc/gcc/cp/error.c:4261 0x1e2aafc pp_format(pretty_printer*, text_info*) /home/marxin/Programming/gcc/gcc/pretty-print.c:1475 0x1e2cb80 pp_format_verbatim(pretty_printer*, text_info*) /home/marxin/Programming/gcc/gcc/pretty-print.c:1536 0x1e2cb80 pp_verbatim(pretty_printer*, char const*, ...) /home/marxin/Programming/gcc/gcc/pretty-print.c:1790 0x92ce56 print_instantiation_full_context /home/marxin/Programming/gcc/gcc/cp/error.c:3503 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=