https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114638
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-04-08
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Known to fail| |4.1.2
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
the problem seems related to tentative parsing. But I will note clang does give
an error quickly.
Reduced C++98 testcase:
```
struct Z
{
Z ();
Z (Z const &);
};
Z t = Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z ( Z
(Z (Z (Z ()));
```
GCC did get worse over time though. Add one more `Z(` and it fails. There is
definitely some O(n^2) issue going on. Most likely trying to figure out if this
is a function declaration vs a function call vs an object creation ...