c++/9335: Inordinately long output when maximum template depth is exceeded

Giovanni Bajo giovannibajo@libero.it
Fri May 2 18:36:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9335

For completeness, Comeau's diagnostic is:

"pr9335.cpp", line 2: error: excessive recursion at instantiation of class
"X<936>"
        static const int value = X<N-1>::value;
                                         ^
          detected during:
            instantiation of class "X<N> [with N=937]" at line 2
            instantiation of class "X<N> [with N=938]" at line 2
            instantiation of class "X<N> [with N=939]" at line 2
            instantiation of class "X<N> [with N=940]" at line 2
            instantiation of class "X<N> [with N=941]" at line 2
            [ 54 instantiation contexts not shown ]
            instantiation of class "X<N> [with N=996]" at line 2
            instantiation of class "X<N> [with N=997]" at line 2
            instantiation of class "X<N> [with N=998]" at line 2
            instantiation of class "X<N> [with N=999]" at line 2
            instantiation of class "X<N> [with N=1000]" at line 4

Giovanni Bajo



More information about the Gcc-bugs mailing list