[Bug c++/19808] miss a warning about uninitialized members in constructor

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 24 19:45:00 GMT 2010



------- Comment #11 from manu at gcc dot gnu dot org  2010-02-24 19:44 -------
(In reply to comment #8)
> What else could it be than a pointer?  It might be possible to mark it somehow
> so that the middle end knows to consider the referent uninitialized.

This is because (this) must be allocated outside the constructor, isn't it? 

Is there nothing pointed by this that could be initialized before calling the
constructor?

> Incidentally, perhaps we should mark the this parameter as __restrict...

Yes, with the new __restrict support, this may bring some benefit. Should I
open a PR about this?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19808



More information about the Gcc-bugs mailing list