This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 May 2014 16:06:17 +0000
- Subject: [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
- Auto-submitted: auto-generated
- References: <bug-43113-4 at http dot gcc dot gnu dot org/bugzilla/>
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| |paolo.carlini at oracle dot com
Depends on| |16564
--- Comment #5 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
I don't want to mark it as a duplicate because PR16564 is a bit more complex.
I think this one should be easier to fix. We could always print:
pr43113.C:7:11: error: template instantiation depth exceeds maximum of 10 (use
-ftemplate-depth= to increase the maximum) instantiating âstruct
A<[...]<A<B>::S>[...]>::S>â
pr43113.C:7:11: recursively instantiated from âA<A<B>::S>â
pr43113.C:7:11: instantiated from âA<B>â
pr43113.C:10:20: instantiated from here
pr43113.C:7:11: error: âA<S>::htâ has incomplete type