[Bug c++/43113] too long diagnostics in some cases of recursive template instantiation

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 20 16:06:00 GMT 2014


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


More information about the Gcc-bugs mailing list