This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Apr 2010 14:42:29 -0000
- Subject: [Bug c++/9335] repeated diagnostic when maximum template depth is exceeded
- References: <bug-9335-180@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from jason at gcc dot gnu dot org 2010-04-18 14:42 -------
(In reply to comment #19)
> Well, the patch is mostly done, it reduces the output from 11 to 1 lines and it
> neatly points out where is the recursive instantiation. So I hope you may
> reconsider, unless you think the 101 lines are useful to the user somehow.
101 lines? Is that a typo?
If this change only applies to the case where all 11 lines would be
instantiations of the same template I guess it sounds reasonable, though the
11-line output seems a bit clearer as to where the recursion is happening.
Perhaps two instantiation lines in this case so we see the first recursion?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335