On 05/25/2017 05:52 AM, Martin Liška wrote:
On 05/25/2017 05:35 AM, Martin Sebor wrote:
On 05/12/2017 07:04 AM, Martin Liška wrote:
Third part removes TDF_* flags mentioned in the subject. These flags are used
to enable all passes of specific type and Nathan has recently separated these
by a new pair of macros. I hope moving these to a separate enum will help even
more.
Just as an FYI, the addition of the user-defined constructor makes
the class non-trivial and so unsafe to initialize by calling memset
in C++ 11 and later. In C++ 98 that GCC is compiled with, the class
is not a POD and so not safe to realloc (i.e., new objects must be
brought to life by calling a constructor). I noticed this by testing
my latest patch for the new -Wclass-memassign warning but I thought
it might be worth noting here as well.
Hi.
Thanks for heads up. I'm not sure why the class is no longer POD as one can
define
constructors (but not copy-ctors) in order to preserve a type to be POD?
As Martin S says, it's a change from C98 to C11. 98 disallowed any ctor.
nathan
--
Nathan Sidwell