[C++] PR19531 NRV is performed on volatile temporary
Christian BRUEL
christian.bruel@st.com
Fri Oct 26 13:54:00 GMT 2007
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
More information about the Gcc-patches
mailing list