[Bug c++/82936] segment fault crash for non-type template parameter
lizhenhuan1019 at qq dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 10 11:02:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82936
--- Comment #2 from lizhenhuan1019 <lizhenhuan1019 at qq dot com> ---
Simplified the test case more:
int fun(int i)
{
return 0;
}
template <typename F>
struct outer;
template <typename R, typename ...Args>
struct outer<R(Args...)>
{
template <R(& f)(Args...)>
struct callable
{
};
};
outer<int(int)>::callable<fun> f;//this line triggered the bug.
More information about the Gcc-bugs
mailing list