[Bug c++/12076] gcov misreports coverage of return statement [NRV]
hubicka at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun May 6 14:32:00 GMT 2007
------- Comment #15 from hubicka at gcc dot gnu dot org 2007-05-06 15:31 -------
The problem with NRV transformation is that it removes the return statement
from default path and keeps it in the catch path making GCOV to properly output
it as unexecuted. I tried to look into the NRV modify_expr withing return_expr
but it is not the place to find the proper locator, looks like NRV itself needs
to be updated.
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12076
More information about the Gcc-bugs
mailing list