[Bug libstdc++/69375] GCC allows PMF type "void (T::*)()" to be caught as "void (T::*)() const"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69375 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|redi at gcc dot gnu.org|unassigned at gcc dot gnu.org --- Comment #2 from Jonathan Wakely --- Hmm, we don't seem to have the cv-quals in __flags. That's a problem.
[Bug libstdc++/69375] GCC allows PMF type "void (T::*)()" to be caught as "void (T::*)() const"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69375 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Component|c++ |libstdc++ Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #1 from Jonathan Wakely --- We're missing a check for cv-qualifiers in __pointer_to_member_type_info::__pointer_catch that needs to be done before we compare the pointees. Both pointees have type void() so we need to compare the cv-quals before that info is lost.