https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103617
Andrew Macleod <amacleod at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #51949|0 |1 is obsolete| | --- Comment #3 from Andrew Macleod <amacleod at redhat dot com> --- Created attachment 51961 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51961&action=edit new patch Doh. there was a thinko and I think c++ was silently changing the parameter back to a pointer. Try this one, it should invoke by reference now instead of via pointer. Sorry, See if this one works.