From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0AA6387084F; Thu, 17 Dec 2020 16:45:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0AA6387084F From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98352] New: [9/10/11 Regression] ICE in implicitly_declare_fn, at cp/method.c:2914 Date: Thu, 17 Dec 2020 16:45:00 +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: 11.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: Thu, 17 Dec 2020 16:45:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98352 Bug ID: 98352 Summary: [9/10/11 Regression] ICE in implicitly_declare_fn, at cp/method.c:2914 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20190217 and 20190224, and affects roughly a dozen testsuite files when running without -std=3Dc++11 : $ cat z1_nsdmi-defer6.C struct A { int i =3D (A(), 42); }; A a; $ g++-11-20201213 -c z1_nsdmi-defer6.C -ansi z1_nsdmi-defer6.C:3:19: warning: non-static data member initializers only available with '-std=3Dc++11' or '-std=3Dgnu++11' 3 | int i =3D (A(), 42); | ^ z1_nsdmi-defer6.C:3:14: internal compiler error: in implicitly_declare_fn, = at cp/method.c:2914 3 | int i =3D (A(), 42); | ^ 0x7f19a0 implicitly_declare_fn(special_function_kind, tree_node*, bool, tree_node*, tree_node*) ../../gcc/cp/method.c:2914 0x7f24a5 lazily_declare_fn(special_function_kind, tree_node*) ../../gcc/cp/method.c:3209 0x7ff9fc maybe_lazily_declare ../../gcc/cp/name-lookup.c:1922 0x7ff9fc get_class_binding(tree_node*, tree_node*, bool) ../../gcc/cp/name-lookup.c:1952 0x8f406b lookup_field_r ../../gcc/cp/search.c:978 0x8f2a4e dfs_walk_all(tree_node*, tree_node* (*)(tree_node*, void*), tree_n= ode* (*)(tree_node*, void*), void*) ../../gcc/cp/search.c:1408 0x8f2bfc lookup_member(tree_node*, tree_node*, int, bool, int, access_failure_info*) ../../gcc/cp/search.c:1121 0x8f2fa0 lookup_fnfields(tree_node*, tree_node*, int, int) ../../gcc/cp/search.c:1327 0x6b1950 build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int) ../../gcc/cp/call.c:9958 0x7bc8f6 build_value_init(tree_node*, int) ../../gcc/cp/init.c:355 0x9745bd build_functional_cast_1 ../../gcc/cp/typeck2.c:2264 0x9745bd build_functional_cast(unsigned int, tree_node*, tree_node*, int) ../../gcc/cp/typeck2.c:2286 0x82f287 cp_parser_functional_cast ../../gcc/cp/parser.c:30524 0x843b92 cp_parser_postfix_expression ../../gcc/cp/parser.c:7417 0x858cf5 cp_parser_unary_expression ../../gcc/cp/parser.c:8808 0x8286ef cp_parser_cast_expression ../../gcc/cp/parser.c:9712 0x828fb1 cp_parser_binary_expression ../../gcc/cp/parser.c:9814 0x8299e0 cp_parser_assignment_expression ../../gcc/cp/parser.c:10118 0x82b409 cp_parser_expression ../../gcc/cp/parser.c:10288 0x840b4d cp_parser_primary_expression ../../gcc/cp/parser.c:5556=