[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-18 Thread manu at gcc dot gnu dot org
--- Comment #23 from manu at gcc dot gnu dot org 2010-04-18 17:40 --- Oh, that is not very difficult to do. But notice that you will still get the last line: /home/manuel/src/pr9335.C:4:17: instantiated from here so we go from 11 to 3 lines. I think that is ok. So go ahead, commit y

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-18 Thread jason at gcc dot gnu dot org
--- Comment #22 from jason at gcc dot gnu dot org 2010-04-18 17:09 --- (In reply to comment #21) > Is that ok or you would prefer the following? > > /home/manuel/src/pr9335.C:2:36: error: template instantiation depth exceeds > maximum of 1024 (use -ftemplate-depth= to increase the maxim

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-18 Thread manu at gcc dot gnu dot org
--- Comment #21 from manu at gcc dot gnu dot org 2010-04-18 16:16 --- (In reply to comment #20) > (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 m

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-18 Thread jason 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

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-17 Thread manu at gcc dot gnu dot org
--- Comment #19 from manu at gcc dot gnu dot org 2010-04-17 07:59 --- (In reply to comment #18) > The output with my patch is > > wa.C:2:38: error: template instantiation depth exceeds maximum of 1024 (use > -ftemplate-depth= to increase the maximum) instantiating �struct > X<-0x0

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-16 Thread jason at gcc dot gnu dot org
--- Comment #18 from jason at gcc dot gnu dot org 2010-04-17 03:53 --- The output with my patch is wa.C:2:38: error: template instantiation depth exceeds maximum of 1024 (use -ftemplate-depth= to increase the maximum) instantiating ‘struct X<-0x00018>’ wa.C:2:38: instantiated from

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-16 Thread manu at gcc dot gnu dot org
--- Comment #17 from manu at gcc dot gnu dot org 2010-04-16 22:24 --- (In reply to comment #16) > Created an attachment (id=20403) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20403&action=view) [edit] > patch to stop error cascade > > This patch fixes the repeated error; it turn

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-16 Thread jason at gcc dot gnu dot org
--- Comment #16 from jason at gcc dot gnu dot org 2010-04-16 22:07 --- Created an attachment (id=20403) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20403&action=view) patch to stop error cascade This patch fixes the repeated error; it turns out I was wrong about this being relat

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-14 Thread lopezibanez at gmail dot com
--- Comment #15 from lopezibanez at gmail dot com 2010-04-14 10:09 --- Subject: Re: repeated diagnostic when maximum template depth is exceeded When that happens? I am sorry but your answer does not help me to find how to fix this. -- http://gcc.gnu.org/bugzilla/show_bug.

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-13 Thread jason at gcc dot gnu dot org
--- Comment #14 from jason at gcc dot gnu dot org 2010-04-14 01:41 --- That sounds like another case where trying to recover from an error by changing a problematic type to 'int' doesn't actually improve matters. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-04-13 Thread manu at gcc dot gnu dot org
--- Comment #13 from manu at gcc dot gnu dot org 2010-04-13 23:48 --- I have a patch that prints this: /home/manuel/src/pr9335.C:2:36: error: template instantiation depth exceeds maximum of 1024 (use -ftemplate-depth= to increase the maximum) instantiating ‘struct X<-0x00018

[Bug c++/9335] repeated diagnostic when maximum template depth is exceeded

2010-02-19 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2010-02-20 01:55 --- The reason why this testcase cannot be solved like bug 23510 is that this testcase produces many repeated: error: template instantiation depth exceeds maximum of 500 (use -ftemplate-depth-NN to increase the maximu