https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63506
--- Comment #1 from Steffen Müthing <steffen.muething at iwr dot uni-heidelberg.de> --- I forgot to mention: This problem is specific to operator*(). If you add an equivalent normal member function and replace the dereferencing operations with calls to that function, the problem does not occur.