https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92385
--- Comment #6 from Carl ---
> I'm not sure if () and {} are semantically equivalent [in this case].
For what it's worth, (not sure if I'm allowed to paste a link here, but) on
cppreference.com [1] under "Constructors and member initializer list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92385
--- Comment #3 from Carl ---
Original "good.cpp" and "bad.cpp" sources now attached.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92385
--- Comment #2 from Carl ---
Created attachment 47181
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47181&action=edit
source that does not exhibit bad compilation performance
Note the constructor initializes the member with parens: "item_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92385
--- Comment #1 from Carl ---
Created attachment 47179
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47179&action=edit
original source file with bad compilation performance
Note the brace member initialization in the constructor: "item_arr
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: edquist at cs dot wisc.edu
Target Milestone: ---
Created attachment 47178
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47178&action=edit
preprocessed