https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537
--- Comment #5 from Hedayat Vatankhah <hedayat.fwd at gmail dot com> --- Oops, maybe I'm wrong. I forgot that I've also wrapped SampleClass::SamplePrivate, so let me investigate further. Sorry for the inconvenience.