This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] PR19531 NRV is performed on volatile temporary
Christian BRUEL wrote:
> 2007-09-24 Christian Bruel <christian.bruel@st.com>
> Mark Mitchell <mark@codesourcery.com>
>
> PR c++/19531
> * cp/typeck.c (check_return_expr): Don't set
> named_return_value_okay_p if retval is volatile.
>
> 2007-09-24 Christian Bruel <christian.bruel@st.com>
>
> PR c++/19531
> * g++.dg/opt/nrv8.C: New.
This patch is OK, thanks.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713