https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61655
--- Comment #3 from Fabien Picarougne <fabien.picarou...@univ-nantes.fr> --- This code is minimal and is just here to illustrate the problem, I use a more complex one to handle generic matrix. But The copy constructor here is not neutral, there is an output on stdout. So I think, the optimization should not take place here, isn't it?