From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9CCCD3851C10; Tue, 28 Apr 2020 12:35:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CCCD3851C10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588077344; bh=9wbNjV4Shg9E8dGcywZ4BxBReTW8682w3/GIiQuGj9M=; h=From:To:Subject:Date:From; b=GTgmKnXTuQick8enn4WKr+ate8othJxHwYaoWSqfvRnBgpgeJDPoCrLtYcu6Qa03R jmYWc5KMaH0lZLJJG1aaa34ECgN5vozsszF/VDXpXalUuuhrcCuW+iuWTLJKAa5X1n 7b4rnUg1Y1maPAwnQzH9v6Siy30ax8rpXmvXjRNA= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94817] New: ICE in add_stmt, at cp/semantics.c:392 Date: Tue, 28 Apr 2020 12:35:44 +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: 10.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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 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: Tue, 28 Apr 2020 12:35:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94817 Bug ID: 94817 Summary: ICE in add_stmt, at cp/semantics.c:392 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-10.0.1-alpha20200426 snapshot (g:29f55115583a0dab6cbac749c4f0804fd88e95= 36) ICEs when compiling the following testcase, extracted from clang/testsuite/SemaCXX/coroutines.cpp from the clang 10.0.0 test suite, w/ -fcoroutines: void no_coroutine_traits() { co_await 4; } template struct void_t_imp { using type =3D void; }; % g++-10.0.1 -fcoroutines -c e96qfdep.cpp e96qfdep.cpp: In function 'void no_coroutine_traits()': e96qfdep.cpp:2:3: error: coroutines require a traits template; cannot find 'std::coroutine_traits' 2 | co_await 4; | ^~~~~~~~ e96qfdep.cpp:2:3: note: perhaps '#include ' is missing e96qfdep.cpp:8:1: internal compiler error: in add_stmt, at cp/semantics.c:3= 92 8 | }; | ^ 0x678153 add_stmt(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/semantics.c:392 0x89887a finish_struct(tree_node*, tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/class.c:7563 0x999413 cp_parser_class_specifier_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:23881 0x99b4bb cp_parser_class_specifier =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:24180 0x99b4bb cp_parser_type_specifier =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:17711 0x99c5c5 cp_parser_decl_specifier_seq =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:14359 0x9c3c78 cp_parser_single_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:29396 0x9c402c cp_parser_template_declaration_after_parameters =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:29059 0x9c4790 cp_parser_explicit_template_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:29325 0x9c79a9 cp_parser_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:13382 0x9c7fef cp_parser_translation_unit =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:4734 0x9c7fef c_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/cp/parser.c:43975 0xae0edb c_common_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200426/work/gcc-10-20200426/gc= c/c-family/c-opts.c:1190=