http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
--- Comment #8 from Paolo Carlini paolo.carlini at oracle dot com 2013-02-15
11:32:02 UTC ---
This is fixed in mainline. I'm adding the reduced testcase and closing the
issue.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
Paolo Carlini paolo.carlini at oracle dot com changed:
What|Removed |Added
Status|NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
Richard Guenther rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
--- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2012-01-12
09:34:49 UTC ---
It's not valid, you can't pass a function type by value
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
--- Comment #6 from Richard Eames naddiseo at gmail dot com 2012-01-12
20:01:52 UTC ---
Created attachment 26309
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26309
Reduced test case
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
{
templatetypename T
function(T) { }
};
class Foo {
public:
templatetypename
void dostuff(function callback =
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
--- Comment #1 from Richard Eames naddiseo at gmail dot com 2012-01-12
05:31:05 UTC ---
Created attachment 26304
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26304
Testcase
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51833
Richard Eames naddiseo at gmail dot com changed:
What|Removed |Added
Known to fail||4.7.0
---