This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51833] ICE in tsubst_copy, at cp/pt.c:11333


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833

--- Comment #5 from Richard Eames <naddiseo at gmail dot com> 2012-01-12 20:01:15 UTC ---
I've reduced the testcase further. It appears to be a problem with templates.
The reason I was passing a function type in the template was because
std::function<bool(Arg*)> wouldn't work for me. If I take out the first
parameter so that it's just the function pointer, then std::function works with
the lambda as a default argument, but as soon as the function is templated I
get the IRC.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]