From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 690CE3858D35; Mon, 2 Oct 2023 01:14:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 690CE3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696209265; bh=3GdgEzw4dV1sBGIwfwdqZ/V3QInnOqBHSqfV1FjJ1DE=; h=From:To:Subject:Date:From; b=v/xUscharKbhqx1Z5XxfU67mtQX6pQ74iWY3t/mGTaw+1ae1N+Z7iAN6qrb4acYnv VnFu34oySm7Jiezne5uHzepnuXHFjILyEEcW+0GVwN3Y4PCOtnND7XPbRhyB9pxr8D EGtQvjOD+0lz1oW5b6jo89mTWhi9Lr7tJ47ZRQAw= From: "envia at envia dot pe.kr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111660] New: Compilation of constexpr function returning enum takes exponential time with -std=c++2a Date: Mon, 02 Oct 2023 01:14:25 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: envia at envia dot pe.kr 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 attachments.created 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=3D111660 Bug ID: 111660 Summary: Compilation of constexpr function returning enum takes exponential time with -std=3Dc++2a Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: envia at envia dot pe.kr Target Milestone: --- Created attachment 56024 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56024&action=3Dedit It took more than 30 minutes. It took more than 30 minutes when I compiled testcase.cc with g++ 14.0.0 20231001 on Debian GNU/Linux 12 with -std=3Dgnu++2a (or gnu++20, c++2a, c++= 20). I guess it is a regression because it finishes within 0.1 second with g++ 13.2.0 or 12.3.0. The testcase is based on GetOneCharToken() of V8.=