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

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 2 19:38:00 GMT 2015


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

--- Comment #13 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #11)

> That's the wrong thing to assert:

Aha, thank you very much.  I obviously did not realize the difference :)

Unfortunately I think even if I made this change I probably wouldn't
want to enable -Wconditionally-supported here, as it enables some
other warning that IIRC isn't desirable here.

I ended up writing a gcc plugin to find places passing an aggregate
to a varargs function.  But I still think some simpler way to get
a warning here would be nice.



More information about the Gcc-bugs mailing list