From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57FA63858C53; Mon, 2 Oct 2023 02:39:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57FA63858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696214386; bh=GfBH5s+I8cYFYwQ6YtxsBzY3BzV3p5JqJ1Z0GEfkPA4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WurURZkV0Di+zGYu/lRMf8cd/yhQdbJVNsuG1ML7sSneo4VgeX3Q0k8dJZwRf5/l9 +Nm+tZ9UxrfB8NbpkkhbqDgOAemj+vpUxzBaBaLg5MYhkmtkufTIYK+zmhf6WEOTVF Sauj7X7gG2UhqP0YlaYpJ8kjCCWfjMGvzo7t5OXA= From: "envia at envia dot pe.kr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111660] [14 Regression] Compilation of constexpr function returning enum takes exponential time with -std=c++2a Date: Mon, 02 Oct 2023 02:39:46 +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: envia at envia dot pe.kr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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 #10 from Hwang Joonhyung --- (In reply to Andrew Pinski from comment #5) > Note for non-C++11 constexpr, using switch here would most likely be bett= er . Thank you for the comment. It helped me to solve my problem.=