https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- class MeanSquaredError { private: arma::mat traindata; :) That is the traindata inside MeanSquaredError::Backward is referencing this->traindata and not the global one.