This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]