From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0543385B80B; Fri, 3 Apr 2020 17:37:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0543385B80B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585935479; bh=ry+WnuYA3+Ihd7xtwrzOOjfcR7ktI4Djcygfmiv+soM=; h=From:To:Subject:Date:From; b=TzTAh4DbZQKcBhmZxdN9kSkt1BkH6b0nqNlbuTgVf8v8Hsj7t3EotVxo7nYAY/DdI ZXkC23eUV9ZIwlfu1aHQMu9AIbbm/h7HnLeMNr4R6s5kV5O9CwbESAap7mnTBoMIV+ /a4S3IpgIXOXyqpk0SgmBONl9mh+AkgR45SHqOCE= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94477] New: ICE in tsubst_expr, at cp/pt.c:18181 Date: Fri, 03 Apr 2020 17:37:59 +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-valid-code, openmp 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: Fri, 03 Apr 2020 17:37:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94477 Bug ID: 94477 Summary: ICE in tsubst_expr, at cp/pt.c:18181 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openmp 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-alpha20200329 snapshot (g:60c254b279e8e8443b8ad26cc46b9e4084cff6= 6c) ICEs when compiling the following testcase, extracted from test/OpenMP/parallel_master_taskloop_collapse_messages.cpp from the clang 10.0.0 test suite, w/ -fopenmp: void j3 (); template void xm () { #pragma omp parallel master j3 (); } void s3 () { xm<0> (); } % g++-10.0.1 -fopenmp -c qnx2epwv.cpp qnx2epwv.cpp: In instantiation of 'void xm() [with int =3D 0]': qnx2epwv.cpp:15:11: required from here qnx2epwv.cpp:8:11: internal compiler error: in tsubst_expr, at cp/pt.c:18181 8 | #pragma omp parallel master | ^~~ 0x659d49 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gc= c/cp/pt.c:18181 0x9eb63a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gc= c/cp/pt.c:17985 0x9e97f6 instantiate_decl(tree_node*, bool, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gc= c/cp/pt.c:25507 0xa1a4ab instantiate_pending_templates(int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gc= c/cp/pt.c:25623 0x91fbd3 c_parse_final_cleanups() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gc= c/cp/decl2.c:4874=