Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 55 years ago

Language

Compiler

Options

Author

anonymous

over 55 years ago

$
prog.cc:4:13: fatal error: recursive template instantiation exceeded maximum depth of 512
constexpr T g(T const&);
            ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
prog.cc:7:38: note: in instantiation of function template specialization 'g<int>' requested here
constexpr T f(T const& val) { return g(val); }
                                     ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
prog.cc:7:38: note: in instantiation of function template specialization 'g<int>' requested here
constexpr T f(T const& val) { return g(val); }
                                     ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
prog.cc:7:38: note: (skipping 503 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
constexpr T f(T const& val) { return g(val); }
                                     ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
prog.cc:7:38: note: in instantiation of function template specialization 'g<int>' requested here
constexpr T f(T const& val) { return g(val); }
                                     ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
prog.cc:7:38: note: in instantiation of function template specialization 'g<int>' requested here
constexpr T f(T const& val) { return g(val); }
                                     ^
prog.cc:12:20: note: in instantiation of function template specialization 'f<int>' requested here
constexpr auto x = f(0);
                   ^
1 error generated.
Exit Code:
1