From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7221A3858D35; Mon, 2 Oct 2023 01:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7221A3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696210010; bh=Tig1tMysnx97jT87RrXLMMhac+E72/WxuouZKf1KfRc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fQ8YnzW9bS99QL/9mJeXY3QHwVcc0RiNGDwYXegkVjdzgnjkaxJyB/PbmsWCHncz5 5UIYKOeNsvZ0uQPjZAT64RU5XsfCrEIK+9NbIhcpYl/+qT6yF12gmHna1zt53FcVA4 /bHx5rlDuMvJrqRuoosYKUg1HTno79QKgbWCMaGA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111660] Compilation of constexpr function returning enum takes exponential time with -std=c++2a Date: Mon, 02 Oct 2023 01:26:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: Message-ID: In-Reply-To: References: 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 --- Comment #6 from Andrew Pinski --- (In reply to Hwang Joonhyung from comment #0) > 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. Does -fno-checking solve the performance issue?=