https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113
--- Comment #7 from Andrew Pinski ---
For the original case in comment #0 we get in GCC 5+:
: In instantiation of 'struct A::S>::S>::S>::S>':
:5:11: recursively required from 'struct A::S>'
:5:11: required from 'struct A'
:8:12: required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113
Martin Liška changed:
What|Removed |Added
CC||marxin at gcc dot gnu.org
--- Comment #6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113
Bug 43113 depends on bug 16564, which changed state.
Bug 16564 Summary: g++ seems to go into an infinite loop after errors
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16564
What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
CC|
--- Comment #4 from manu at gcc dot gnu dot org 2010-04-28 08:46 ---
The output is now:
$ cc1plus pr43113.C -ftemplate-depth=10
pr43113.C:7:11: error: template instantiation depth exceeds maximum of 10 (use
-ftemplate-depth= to increase the maximum) instantiating struct
--- Comment #2 from manu at gcc dot gnu dot org 2010-02-20 00:36 ---
This is a different case than 9335.
Comeau does not handle this well either, so I am not sure how this case could
be solved.
--
manu at gcc dot gnu dot org changed:
What|Removed
--- Comment #3 from manu at gcc dot gnu dot org 2010-02-20 00:36 ---
But this is confirmed in GCC 4.5
--
manu at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #1 from paolo dot carlini at oracle dot com 2010-02-18 14:18
---
*** This bug has been marked as a duplicate of 9335 ***
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added