[Bug c++/68386] error: invalid initialization of reference of type 'void (&&)()' from expression of type 'void()'
schaub.johannes at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 17 16:25:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68386
Johannes Schaub <schaub.johannes at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schaub.johannes@googlemail.
| |com
--- Comment #1 from Johannes Schaub <schaub.johannes at googlemail dot com> ---
This can be further reduced to
struct A { static void mf() { } };
int main() {
A a;
void (&rmf)() = a.mf; // error
}
More information about the Gcc-bugs
mailing list