This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45221] missed optimization with multiple bases and casting
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2010 16:27:40 -0000
- Subject: [Bug c++/45221] missed optimization with multiple bases and casting
- References: <bug-45221-17658@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rguenth at gcc dot gnu dot org 2010-08-07 16:27 -------
(In reply to comment #7)
> Richard, if you can't derive non-NULL-ness from X& y = *x, how do foo3 and fooB
> avoid the null check?
For both cases the C++ frontend do not emit the NULL check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45221