This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51833] ICE in tsubst_copy, at cp/pt.c:11333
- From: "naddiseo at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 20:01:15 +0000
- Subject: [Bug c++/51833] ICE in tsubst_copy, at cp/pt.c:11333
- Auto-submitted: auto-generated
- References: <bug-51833-4@http.gcc.gnu.org/bugzilla/>
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.