[Bug c++/64867] warning for passing non-POD to varargs function

rsandifo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 5 14:11:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #18 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #16)
> (In reply to John Steele Scott from comment #14)
> > FWIW Clang has this warning via -Wnon-pod-varargs.
> 
> Confirmed, gcc having this warning would help avoid:
> http://gcc.gnu.org/ml/gcc-patches/2017-09/msg00126.html

Yeah.  The situation is similar to the code in comment #4,
which as Jakub says in comment #10 no longer produces a warning
with g++ -Wconditionally-supported.  I had to add a dummy
destructor to get one.


More information about the Gcc-bugs mailing list