https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80482
--- Comment #1 from seurer at gcc dot gnu.org --- I see the problem. The compiler is enforcing "the parameter types must match" too tightly. It should be checking the unqualified types (sans const/volatile) instead of the types directly.