[Bug c++/111531] Bound member function with multiple inheritance documentation should be clearer

2023-09-22 Thread paulhaile3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111531 --- Comment #4 from Paul Haile --- The only time I could imagine allowing type mismatch would be in allowing the function pointer to allow void * in type erased contexts. e.g. typedef void (*b_fptr)(void *);

[Bug c++/111531] Bound member function with multiple inheritance documentation should be clearer

2023-09-22 Thread paulhaile3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111531 --- Comment #3 from Paul Haile --- Fair enough definitely could be intentional. However, In this example renaming typedef void (*b_fptr)(B *); to typedef void (*b_fptr)(A *); gets rid of the error. It seems restricting the binding such

[Bug c++/111531] Bound member function with multiple inheritance documentation should be clearer

2023-09-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111531 Andrew Pinski changed: What|Removed |Added Summary|Bound member function |Bound member function with