https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111660

            Bug ID: 111660
           Summary: Compilation of constexpr function returning enum takes
                    exponential time with -std=c++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=56024&action=edit
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=gnu++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.

Reply via email to