public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111660] New: Compilation of constexpr function returning enum takes exponential time with -std=c++2a
@ 2023-10-02  1:14 envia at envia dot pe.kr
  2023-10-02  1:16 ` [Bug c++/111660] " envia at envia dot pe.kr
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: envia at envia dot pe.kr @ 2023-10-02  1:14 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-10-17 21:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02  1:14 [Bug c++/111660] New: Compilation of constexpr function returning enum takes exponential time with -std=c++2a envia at envia dot pe.kr
2023-10-02  1:16 ` [Bug c++/111660] " envia at envia dot pe.kr
2023-10-02  1:17 ` envia at envia dot pe.kr
2023-10-02  1:18 ` envia at envia dot pe.kr
2023-10-02  1:24 ` envia at envia dot pe.kr
2023-10-02  1:26 ` pinskia at gcc dot gnu.org
2023-10-02  1:26 ` pinskia at gcc dot gnu.org
2023-10-02  1:31 ` pinskia at gcc dot gnu.org
2023-10-02  1:33 ` [Bug c++/111660] [14 Regression] " pinskia at gcc dot gnu.org
2023-10-02  1:39 ` envia at envia dot pe.kr
2023-10-02  2:39 ` envia at envia dot pe.kr
2023-10-02 13:34 ` ppalka at gcc dot gnu.org
2023-10-02 14:43 ` mpolacek at gcc dot gnu.org
2023-10-04  9:41 ` [Bug c++/111660] [14 Regression] Compilation of constexpr function returning enum takes exponential time with -std=c++2a since r14-4140-g6851e3423c2b5e rguenth at gcc dot gnu.org
2023-10-12 19:17 ` mpolacek at gcc dot gnu.org
2023-10-17 21:42 ` cvs-commit at gcc dot gnu.org
2023-10-17 21:43 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).