[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 15:04:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Conservative fix applied for GCC 6, a better fix (attached) is going to replace
it for GCC 7. A diagnostic is now issued for this invalid constructor call.
(Hopefully for GCC 7 we will no longer silently discard erroneous code like
that, see https://gcc.gnu.org/ml/gcc-patches/2015-12/msg02234.html)
More information about the Gcc-bugs
mailing list