Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:12:5: fatal error: recursive template instantiation exceeded maximum depth of 1024
    f<N-1>();
    ^
prog.cc:12:5: note: in instantiation of function template specialization 'f<-1019>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<-1018>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<-1017>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<-1016>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<-1015>' requested here
prog.cc:12:5: note: (skipping 1015 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
prog.cc:12:5: note: in instantiation of function template specialization 'f<1>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<2>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<3>' requested here
prog.cc:12:5: note: in instantiation of function template specialization 'f<4>' requested here
prog.cc:16:5: note: in instantiation of function template specialization 'f<5>' requested here
    f<5>();
    ^
1 error generated.
Exit Code:
1