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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 20:43:04 +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 #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-12 20:43:04 UTC ---
Further reduced
struct function
{
template<typename T>
function(T) { }
};
class Foo {
public:
template<typename>
void dostuff(function callback = []() { }) { }
};
int main() {
Foo foo;
foo.dostuff<int>();
}