This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] PR19531 NRV is performed on volatile temporary


Mark Mitchell wrote:
Christian BRUEL wrote:


2007-09-24 Christian Bruel <christian.bruel@st.com>

PR c++/19531
* cp/decl.c (finish_function): Check volatility for nrv.
2007-09-24 Christian Bruel <christian.bruel@st.com>


   PR c++/19531
   * g++.dg/opt/nrv8.C: New.


On mainline, even the previous broken check for volatility seems to be
missing.

In the testsuite there is a 'nrv7.C' and a 'nrv9.C' but no 'nrv8.C'. So I picked up this slot, but maybe I should have called the test 'nrv15.C' instead ?


Does this bug still exist on mainline and does your change
still fix it?

Thanks,


yes it still exists and my change still fixes it.


Regards,

-c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]