------- 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 maximum) instantiating > 'struct X<-0x00000000000000018>' > /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int > X<N-1>::value' > /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int > X<1000>::value' > /home/manuel/src/pr9335.C:4:17: instantiated from here
I was thinking just /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int X<999>::value' /home/manuel/src/pr9335.C:2:36: instantiated from 'const int X<1000>::value' I think seeing one iteration would make it clearer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335