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)