https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57272
--- Comment #6 from Phil Bouchard <philippeb8 at gmail dot com> --- Also please make sure the pointer arguments are passed by reference and not by value. This would ensure we could use our own smart pointers.